]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91181: drop support for bytes on sys.path (GH-31934)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 17 Jul 2022 01:31:25 +0000 (18:31 -0700)
committerGitHub <noreply@github.com>
Sun, 17 Jul 2022 01:31:25 +0000 (18:31 -0700)
commitccbf85382c48f02939b9f84def45265be1dd795f
treef0576779d4e1c01c9164dce07474b700a2520cf1
parente121cb5814b4e24cabf44b65a395d69c5acdafd5
gh-91181: drop support for bytes on sys.path (GH-31934)

Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it.

Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
(cherry picked from commit 6da988a46c8955755624ad9878288d5214fceb4e)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Doc/library/sys.rst
Doc/reference/import.rst
Lib/importlib/_bootstrap_external.py
Lib/test/test_zipimport.py
Lib/zipimport.py
Misc/NEWS.d/next/Library/2022-03-16-14-24-14.bpo-47025.qtT3CE.rst [new file with mode: 0644]