diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-31 21:15:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 21:15:44 (GMT) |
commit | a5272e63efc003a30a2b603b512d367282a24209 (patch) | |
tree | dbe9bc274cb8806e619b32f7b6bb0afb52649b9d /Lib/_pyrepl/commands.py | |
parent | 67ac19111f14e9606454d0f36a52132996073db4 (diff) | |
download | cpython-a5272e63efc003a30a2b603b512d367282a24209.zip cpython-a5272e63efc003a30a2b603b512d367282a24209.tar.gz cpython-a5272e63efc003a30a2b603b512d367282a24209.tar.bz2 |
[3.13] gh-118894: Make asyncio REPL use pyrepl (GH-119433) (#119884)
(cherry picked from commit 2237946af0981c46dc7d3886477e425ccfb37f28)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/_pyrepl/commands.py')
-rw-r--r-- | Lib/_pyrepl/commands.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/_pyrepl/commands.py b/Lib/_pyrepl/commands.py index ed977f8..2ef5dad 100644 --- a/Lib/_pyrepl/commands.py +++ b/Lib/_pyrepl/commands.py @@ -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 |