parameters: (self, reader)
return_statement: return contents
docstring: Parse header parameters into a dictionary, return the preamble.
docstring_summary: Parse header parameters into a dictionary, return the preamble.
docstring_tokens: Parse header parameters into a dictionary return the preamble .
function: def parse(self, reader):
      "Parse header parameters into a dictionary, return the preamble."
      contents = []
      self.parseending(reader, lambda: self.parseline(reader, contents))
      # skip last line
      reader.nextline()
      return contents
function_tokens: def parse ( self , reader ) : contents = [ ] self . parseending ( reader , lambda : self . parseline ( reader , contents ) ) # skip last line reader . nextline ( ) return contents