Raise a KeyboardInterrupt.
(self)
| 2810 | sys.exit(128 + signum) |
| 2811 | |
| 2812 | def _raise_keyboard_interrupt(self) -> None: |
| 2813 | """Raise a KeyboardInterrupt.""" |
| 2814 | self.poutput() # Ensure new prompt is on a line by itself |
| 2815 | raise KeyboardInterrupt("Got a keyboard interrupt") |
| 2816 | |
| 2817 | def pre_prompt(self) -> None: |
| 2818 | """Ran just before the prompt is displayed (and after the event loop has started). |