mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] gh-139845: do not print twice in default asyncio REPL (GH-139846) (#139860)
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
16d2e97cf3
commit
54f9613a37
2 changed files with 3 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ def callback():
|
||||||
return
|
return
|
||||||
except BaseException:
|
except BaseException:
|
||||||
if keyboard_interrupted:
|
if keyboard_interrupted:
|
||||||
self.write("\nKeyboardInterrupt\n")
|
if not CAN_USE_PYREPL:
|
||||||
|
self.write("\nKeyboardInterrupt\n")
|
||||||
else:
|
else:
|
||||||
self.showtraceback()
|
self.showtraceback()
|
||||||
return self.STATEMENT_FAILED
|
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