mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
gh-119553: Fix console when pressing Ctrl-C within a multiline block (#120075)
This commit is contained in:
parent
4055577221
commit
69b3e8ea56
2 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,7 @@ def run_multiline_interactive_console(
|
|||
assert not more
|
||||
input_n += 1
|
||||
except KeyboardInterrupt:
|
||||
console.write("\nKeyboardInterrupt\n")
|
||||
console.write("KeyboardInterrupt\n")
|
||||
console.resetbuffer()
|
||||
except MemoryError:
|
||||
console.write("\nMemoryError\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue