mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -221,6 +221,7 @@ class interrupt(FinishCommand):
|
|||
|
||||
class ctrl_c(Command):
|
||||
def do(self) -> None:
|
||||
self.reader.finish()
|
||||
raise KeyboardInterrupt
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue