(self, prompt)
Read one line, using input() when appropriate.
Read one line, using input() when appropriate.
Read one line using input () when appropriate .
def getline(self, prompt):
        """Read one line, using input() when appropriate."""
        if self.input is sys.stdin:
            return input(prompt)
        else:
            self.output.write(prompt)
            self.output.flush()
            return self.input.readline()
def getline ( self , prompt ) : if self . input is sys . stdin : return input ( prompt ) else : self . output . write ( prompt ) self . output . flush ( ) return self . input . readline ( )