[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:
Miss Islington (bot) 2024-06-04 20:45:22 +02:00 committed by GitHub
parent fd5428d2d1
commit 93b95e91fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 0 deletions

View file

@ -221,6 +221,7 @@ class interrupt(FinishCommand):
class ctrl_c(Command):
def do(self) -> None:
self.reader.finish()
raise KeyboardInterrupt