From 6398e6a0400fb4feb0711e21bc1169d60fe709f8 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Sun, 29 Dec 2024 14:40:35 +0000 Subject: [PATCH] gh-128330: Terminal settings are not correctly restored on repl exit --- Lib/_pyrepl/fancy_termios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/_pyrepl/fancy_termios.py b/Lib/_pyrepl/fancy_termios.py index 5b85cb0f52521f..056437b21f3a76 100644 --- a/Lib/_pyrepl/fancy_termios.py +++ b/Lib/_pyrepl/fancy_termios.py @@ -40,7 +40,7 @@ def as_list(self): self.lflag, self.ispeed, self.ospeed, - self.cc, + self.cc[:], ] def copy(self):