mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204)
This commit is contained in:
parent
1d023e374c
commit
489c36920e
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue