parameters: (lines)
return_statement: return lines[:1]
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."""
      try:
          tokenize.tokenize(ListReader(lines).readline, BlockFinder().tokeneater)
      except EndOfBlock, eob:
          return lines[:eob.args[0]]
      # Fooling the indent/dedent logic implies a one-line definition
      return lines[:1]
function_tokens: def getblock ( lines ) : try : tokenize . tokenize ( ListReader ( lines ) . readline , BlockFinder ( ) . tokeneater ) except EndOfBlock , eob : return lines [ : eob . args [ 0 ] ] # Fooling the indent/dedent logic implies a one-line definition return lines [ : 1 ]