(lines, prefix)
Dole out the input text in blocks separated by blank lines.

  A "blank line" in this case means a line that is actually zero length or
  just is the comment prefix. The common prefix, along with any spaces trailing
  the prefix are removed from each line.

  Args:
    lines: list of str
    prefix: a commmon prefix to remove from each line
  Yields:
    list of (list of str)
Dole out the input text in blocks separated by blank lines.
Dole out the input text in blocks separated by blank lines .
def _DivideIntoBlocks(lines, prefix):
  """Dole out the input text in blocks separated by blank lines.

  A "blank line" in this case means a line that is actually zero length or
  just is the comment prefix. The common prefix, along with any spaces trailing
  the prefix are removed from each line.

  Args:
    lines: list of str
    prefix: a commmon prefix to remove from each line
  Yields:
    list of (list of str)
  """
  block = []
  prefix = prefix.rstrip()
  for line in lines:
    if line.startswith(prefix):
      line = line[len(prefix):].strip()
    if not line:
      if block:
        yield block
      block = []
      continue
    block.append(line)
  if block:
    yield block
def _DivideIntoBlocks ( lines , prefix ) : block = [ ] prefix = prefix . rstrip ( ) for line in lines : if line . startswith ( prefix ) : line = line [ len ( prefix ) : ] . strip ( ) if not line : if block : yield block block = [ ] continue block . append ( line ) if block : yield block