From: Inada Naoki Date: Tue, 6 Apr 2021 08:02:54 +0000 (+0900) Subject: bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204) X-Git-Tag: v3.10.0b1~396 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=489c36920e94bfb4988b6f965bd0aafdfaff0d4f;p=thirdparty%2FPython%2Fcpython.git bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204) --- diff --git a/Tools/scripts/pdeps.py b/Tools/scripts/pdeps.py index 4e8e930948f1..ab0040f48e2e 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]