commit | 80017752ba938852d53f9d83a404b4ecd9ff2baa | [log] [tgz] |
---|---|---|
author | Inada Naoki <songofacandy@gmail.com> | Fri Apr 02 09:01:57 2021 +0900 |
committer | GitHub <noreply@github.com> | Fri Apr 02 09:01:57 2021 +0900 |
tree | 6b6925ce58d2d5b0b7db54451b598d6679d02fc3 | |
parent | c0ec4486dc7dd70fea39d1473ac9a9ac568378fe [diff] [blame] |
bpo-43651: Fix test_compileall with PEP 597 (GH-25128)
diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py index 21f2a7e..a468333 100644 --- a/Lib/multiprocessing/util.py +++ b/Lib/multiprocessing/util.py
@@ -419,7 +419,7 @@ def _close_stdin(): try: fd = os.open(os.devnull, os.O_RDONLY) try: - sys.stdin = open(fd, closefd=False) + sys.stdin = open(fd, encoding="utf-8", closefd=False) except: os.close(fd) raise