mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-119553: Clear reader on Ctrl-C command (GH-119801)
This commit is contained in:
parent
d419d468ff
commit
010ea93b2b
3 changed files with 19 additions and 0 deletions
|
@ -75,6 +75,8 @@ def handle_all_events(
|
|||
reader.handle1()
|
||||
except StopIteration:
|
||||
pass
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
return reader, console
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue