[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:
Miss Islington (bot) 2024-05-31 23:15:44 +02:00 committed by GitHub
parent 67ac19111f
commit a5272e63ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 143 additions and 65 deletions

View file

@ -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