summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-04-06 08:02:54 (GMT)
committerGitHub <noreply@github.com>2021-04-06 08:02:54 (GMT)
commit489c36920e94bfb4988b6f965bd0aafdfaff0d4f (patch)
tree6e3420889df670c87663eed7597b868653aabfad /Tools
parent1d023e374cf96d143b065242131ddc9b889f9a1e (diff)
downloadcpython-489c36920e94bfb4988b6f965bd0aafdfaff0d4f.zip
cpython-489c36920e94bfb4988b6f965bd0aafdfaff0d4f.tar.gz
cpython-489c36920e94bfb4988b6f965bd0aafdfaff0d4f.tar.bz2
bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/pdeps.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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]