]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110392: Fix tty functions (GH-110642)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 14 Oct 2023 05:50:41 +0000 (08:50 +0300)
committerGitHub <noreply@github.com>
Sat, 14 Oct 2023 05:50:41 +0000 (08:50 +0300)
commit84e2096fbdea880799f2fdb3f0992a8961106bed
treef1fb8bef511c750493f781a7a19d009ef4e5991c
parent7284e0ef84e53f80b2e60c3f51e3467d67a275f3
gh-110392: Fix tty functions (GH-110642)

* 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.
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]