parameters: (self, prompt)
docstring: Read one line, using raw_input when available.
docstring_summary: Read one line, using raw_input when available.
docstring_tokens: Read one line using raw_input when available .
function: def getline(self, prompt):
          """Read one line, using raw_input when available."""
          if self.input is sys.stdin:
              return raw_input(prompt)
          else:
              self.output.write(prompt)
              self.output.flush()
              return self.input.readline()
function_tokens: def getline ( self , prompt ) : if self . input is sys . stdin : return raw_input ( prompt ) else : self . output . write ( prompt ) self . output . flush ( ) return self . input . readline ( )