Read one line, using input() when appropriate.
(self, prompt)
| 2126 | self.help(request) |
| 2127 | |
| 2128 | def getline(self, prompt): |
| 2129 | """Read one line, using input() when appropriate.""" |
| 2130 | if self.input is sys.stdin: |
| 2131 | return input(prompt) |
| 2132 | else: |
| 2133 | self.output.write(prompt) |
| 2134 | self.output.flush() |
| 2135 | return self.input.readline() |
| 2136 | |
| 2137 | def help(self, request, is_cli=False): |
| 2138 | if isinstance(request, str): |