parameters: (lines)
return_statement: return lines[:blockfinder.last]
docstring: Extract the block of code at the top of the given list of lines.
docstring_summary: Extract the block of code at the top of the given list of lines.
docstring_tokens: Extract the block of code at the top of the given list of lines .
function: def getblock(lines):
      """Extract the block of code at the top of the given list of lines."""
      blockfinder = BlockFinder()
      try:
          tokenize.tokenize(iter(lines).next, blockfinder.tokeneater)
      except (EndOfBlock, IndentationError):
          pass
      return lines[:blockfinder.last]
function_tokens: def getblock ( lines ) : blockfinder = BlockFinder ( ) try : tokenize . tokenize ( iter ( lines ) . next , blockfinder . tokeneater ) except ( EndOfBlock , IndentationError ) : pass return lines [ : blockfinder . last ]