]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110392: Fix tty functions (GH-110642) (GH-110853)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 14 Oct 2023 06:18:14 +0000 (08:18 +0200)
committerGitHub <noreply@github.com>
Sat, 14 Oct 2023 06:18:14 +0000 (06:18 +0000)
commit0164832db57bab00a1d14db17e4aa24079961fd0
tree0eb25800c1de9f3f8cbb12e98fe71d6a9c99de8b
parent0102faf0cac107fd4d0fde9902560c7cf0a3be9d
[3.12] gh-110392: Fix tty functions (GH-110642) (GH-110853)

* tty.setraw() and tty.setcbreak() previously returned partially modified
  list of the original tty attributes. Now they return the correct list of
  the original tty attributes

* tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of
  special characters before modifying it.

(cherry picked from commit 84e2096fbdea880799f2fdb3f0992a8961106bed)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_tty.py
Lib/tty.py
Misc/NEWS.d/next/Library/2023-10-10-17-56-41.gh-issue-110392.6g6CnP.rst [new file with mode: 0644]