commit | 489c36920e94bfb4988b6f965bd0aafdfaff0d4f | [log] [tgz] |
---|---|---|
author | Inada Naoki <songofacandy@gmail.com> | Tue Apr 06 17:02:54 2021 +0900 |
committer | GitHub <noreply@github.com> | Tue Apr 06 17:02:54 2021 +0900 |
tree | 6e3420889df670c87663eed7597b868653aabfad | |
parent | 1d023e374cf96d143b065242131ddc9b889f9a1e [diff] |
bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204)
diff --git a/Tools/scripts/pdeps.py b/Tools/scripts/pdeps.py index 4e8e930..ab0040f 100755 --- a/Tools/scripts/pdeps.py +++ b/Tools/scripts/pdeps.py
@@ -64,7 +64,7 @@ def main(): # 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]