diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-04-02 00:01:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 00:01:57 (GMT) |
commit | 80017752ba938852d53f9d83a404b4ecd9ff2baa (patch) | |
tree | 6b6925ce58d2d5b0b7db54451b598d6679d02fc3 /Lib/compileall.py | |
parent | c0ec4486dc7dd70fea39d1473ac9a9ac568378fe (diff) | |
download | cpython-80017752ba938852d53f9d83a404b4ecd9ff2baa.zip cpython-80017752ba938852d53f9d83a404b4ecd9ff2baa.tar.gz cpython-80017752ba938852d53f9d83a404b4ecd9ff2baa.tar.bz2 |
bpo-43651: Fix test_compileall with PEP 597 (GH-25128)
Diffstat (limited to 'Lib/compileall.py')
-rw-r--r-- | Lib/compileall.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py index 672cb43..61b4c5c 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -407,7 +407,8 @@ def main(): # if flist is provided then load it if args.flist: try: - with (sys.stdin if args.flist=='-' else open(args.flist)) as f: + with (sys.stdin if args.flist=='-' else + open(args.flist, encoding="utf-8")) as f: for line in f: compile_dests.append(line.strip()) except OSError: |