diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-04-06 17:02:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 17:02:54 +0900 |
commit | 489c36920e94bfb4988b6f965bd0aafdfaff0d4f (patch) | |
tree | 6e3420889df670c87663eed7597b868653aabfad | |
parent | 1d023e374cf96d143b065242131ddc9b889f9a1e (diff) | |
download | cpython-git-489c36920e94bfb4988b6f965bd0aafdfaff0d4f.tar.gz |
bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204)
-rwxr-xr-x | Tools/scripts/pdeps.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/pdeps.py b/Tools/scripts/pdeps.py index 4e8e930948..ab0040f48e 100755 --- a/Tools/scripts/pdeps.py +++ b/Tools/scripts/pdeps.py @@ -64,7 +64,7 @@ m_from = re.compile('^[ \t]*import[ \t]+([^#]+)') # Collect data from one file # def process(filename, table): - with open(filename) as fp: + with open(filename, encoding='utf-8') as fp: mod = os.path.basename(filename) if mod[-3:] == '.py': mod = mod[:-3] |