(self)
| 142 | loop.call_soon_threadsafe(loop.stop) |
| 143 | |
| 144 | def interrupt(self) -> None: |
| 145 | if not CAN_USE_PYREPL: |
| 146 | return |
| 147 | |
| 148 | from _pyrepl.simple_interact import _get_reader |
| 149 | r = _get_reader() |
| 150 | if r.threading_hook is not None: |
| 151 | r.threading_hook.add("") # type: ignore |
| 152 | |
| 153 | |
| 154 | if __name__ == '__main__': |