]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98393: os module reject bytes-like, only accept bytes (#98394)
authorVictor Stinner <vstinner@python.org>
Tue, 18 Oct 2022 15:52:31 +0000 (17:52 +0200)
committerGitHub <noreply@github.com>
Tue, 18 Oct 2022 15:52:31 +0000 (17:52 +0200)
commitdb03c8066a6b12fa23618f9add0eb795936726b4
tree71d35cac37736188bbe8b046aab657b0892be1de
parent9da5215000920870eeddd78af92da4c98099706c
gh-98393: os module reject bytes-like, only accept bytes (#98394)

The os module and the PyUnicode_FSDecoder() function no longer accept
bytes-like paths, like bytearray and memoryview types: only the exact
bytes type is accepted for bytes strings.
Doc/whatsnew/3.12.rst
Lib/test/test_compile.py
Lib/test/test_os.py
Lib/test/test_posix.py
Lib/test/test_symtable.py
Misc/NEWS.d/next/C API/2022-10-18-16-16-27.gh-issue-98393.55u4BF.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2022-10-18-15-41-37.gh-issue-98393.vhPu4L.rst [new file with mode: 0644]
Modules/posixmodule.c
Objects/unicodeobject.c