gh-119553: Fix console when pressing Ctrl-C within a multiline block (#120075)

This commit is contained in:
Lysandros Nikolaou 2024-06-04 23:22:28 +02:00 committed by GitHub
parent 4055577221
commit 69b3e8ea56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

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