mirror of
https://github.com/python/cpython.git
synced 2025-11-11 19:12:05 +00:00
[3.14] gh-139845: do not print twice in default asyncio REPL (GH-139846) (#139859)
gh-139845: do not print twice in default asyncio REPL (GH-139846)
(cherry picked from commit a310b3a99d)
Co-authored-by: yihong <zouzou0208@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
8761d6e644
commit
925625447f
2 changed files with 3 additions and 1 deletions
|
|
@ -74,7 +74,8 @@ def callback():
|
|||
return
|
||||
except BaseException:
|
||||
if keyboard_interrupted:
|
||||
self.write("\nKeyboardInterrupt\n")
|
||||
if not CAN_USE_PYREPL:
|
||||
self.write("\nKeyboardInterrupt\n")
|
||||
else:
|
||||
self.showtraceback()
|
||||
return self.STATEMENT_FAILED
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Fix to not print KeyboardInterrupt twice in default asyncio REPL.
|
||||
Loading…
Add table
Add a link
Reference in a new issue