]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44666: Use default encoding as fallback for compile_file (GH-27236)
authorStefan Hoelzl <1478183+stefanhoelzl@users.noreply.github.com>
Fri, 30 Jul 2021 16:38:42 +0000 (18:38 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jul 2021 16:38:42 +0000 (18:38 +0200)
commit80f07076294bc09a55ed76d9bbf307404eef25e6
tree5a419fedf23bb306171060ae8ae19c97a0d80c72
parent7cad0bee80a536c7e47f54cf43174175834f30a0
bpo-44666: Use default encoding as fallback for compile_file (GH-27236)

When sys.stdout.encoding is None compile_file will fall back to
sys.getdefaultencoding to encode/decode error messages.

Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de>
Co-authored-by: Mickaƫl Schoentgen <contact@tiger-222.fr>
Lib/compileall.py
Lib/test/test_compileall.py
Misc/ACKS
Misc/NEWS.d/next/Library/2021-07-21-10-43-22.bpo-44666.CEThkv.rst [new file with mode: 0644]