From 489c36920e94bfb4988b6f965bd0aafdfaff0d4f Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 6 Apr 2021 17:02:54 +0900 Subject: bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204) --- Tools/scripts/pdeps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- cgit v0.12