]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44666: Use default encoding as fallback for compile_file (GH-27236) (GH-27488)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 30 Jul 2021 17:12:05 +0000 (10:12 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Jul 2021 17:12:05 +0000 (19:12 +0200)
commit0db6c143ae5f04d223fdb2c94b820f16714b0a09
treec25d7cd28da2d1a7eadbb0aba3c25f202d6aaf49
parent6e6dc2517379289932c68fc986ee3994468374fc
bpo-44666: Use default encoding as fallback for compile_file (GH-27236) (GH-27488)

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>
(cherry picked from commit 80f07076294bc09a55ed76d9bbf307404eef25e6)
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]