(self)
| 134 | loop.call_soon_threadsafe(loop.stop) |
| 135 | |
| 136 | def interrupt(self) -> None: |
| 137 | if not CAN_USE_PYREPL: |
| 138 | return |
| 139 | |
| 140 | from _pyrepl.simple_interact import _get_reader |
| 141 | r = _get_reader() |
| 142 | if r.threading_hook is not None: |
| 143 | r.threading_hook.add("") # type: ignore |
| 144 | |
| 145 | |
| 146 | if __name__ == '__main__': |