diff --git a/Lib/_pyrepl/fancy_termios.py b/Lib/_pyrepl/fancy_termios.py index 056437b21f3a76..0468b9a2670267 100644 --- a/Lib/_pyrepl/fancy_termios.py +++ b/Lib/_pyrepl/fancy_termios.py @@ -40,6 +40,8 @@ def as_list(self): self.lflag, self.ispeed, self.ospeed, + # Always return a copy of the control characters list to ensure + # there are not any additional references to self.cc self.cc[:], ]