MCPcopy Index your code
hub / github.com/RustPython/RustPython / do

Method do

Lib/_pyrepl/commands.py:215–220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213
214class interrupt(FinishCommand):
215 def do(self) -> None:
216 import signal
217
218 self.reader.console.finish()
219 self.reader.finish()
220 os.kill(os.getpid(), signal.SIGINT)
221
222
223class ctrl_c(Command):

Callers

nothing calls this directly

Calls 2

finishMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected