Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Lib/asyncio/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def callback():
return
except BaseException:
if keyboard_interrupted:
self.write("\nKeyboardInterrupt\n")
# (pyrepl already handles and prints it)
if not CAN_USE_PYREPL:
self.write("\nKeyboardInterrupt\n")
else:
self.showtraceback()
return self.STATEMENT_FAILED
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix: do not print KeyboardInterrupt twice in default asyncio REPL.
Loading