mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
[3.13] gh-118894: Make asyncio REPL use pyrepl (GH-119433) (#119884)
(cherry picked from commit 2237946af0
)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
67ac19111f
commit
a5272e63ef
7 changed files with 143 additions and 65 deletions
|
@ -219,6 +219,11 @@ class interrupt(FinishCommand):
|
|||
os.kill(os.getpid(), signal.SIGINT)
|
||||
|
||||
|
||||
class ctrl_c(Command):
|
||||
def do(self) -> None:
|
||||
raise KeyboardInterrupt
|
||||
|
||||
|
||||
class suspend(Command):
|
||||
def do(self) -> None:
|
||||
import signal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue