mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204)
This commit is contained in:
parent
1d023e374c
commit
489c36920e
@ -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…
Reference in New Issue
Block a user