| 360 | return self.reader |
| 361 | |
| 362 | def input(self, prompt: object = "") -> str: |
| 363 | try: |
| 364 | reader = self.get_reader() |
| 365 | except _error: |
| 366 | assert raw_input is not None |
| 367 | return raw_input(prompt) |
| 368 | prompt_str = str(prompt) |
| 369 | reader.ps1 = prompt_str |
| 370 | sys.audit("builtins.input", prompt_str) |
| 371 | result = reader.readline(startup_hook=self.startup_hook) |
| 372 | sys.audit("builtins.input/result", result) |
| 373 | return result |
| 374 | |
| 375 | def multiline_input(self, more_lines: MoreLinesCallable, ps1: str, ps2: str) -> str: |
| 376 | """Read an input on possibly multiple lines, asking for more |