Read one line, using input() when appropriate.
(self, prompt)
| 2090 | self.help(request) |
| 2091 | |
| 2092 | def getline(self, prompt): |
| 2093 | """Read one line, using input() when appropriate.""" |
| 2094 | if self.input is sys.stdin: |
| 2095 | return input(prompt) |
| 2096 | else: |
| 2097 | self.output.write(prompt) |
| 2098 | self.output.flush() |
| 2099 | return self.input.readline() |
| 2100 | |
| 2101 | def help(self, request, is_cli=False): |
| 2102 | if isinstance(request, str): |