mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
[3.13] gh-119553: Clear reader on Ctrl-C command (GH-119801) (#120062)
(cherry picked from commit 010ea93b2b
)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
fd5428d2d1
commit
93b95e91fa
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