mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Also specify encoding when reading setup.cfg (#12320)
This commit is contained in:
parent
043f5ae697
commit
8d233f2cb0
1 changed files with 1 additions and 1 deletions
|
@ -1044,7 +1044,7 @@ def cfg_to_args(path='setup.cfg'):
|
|||
if not os.path.exists(path):
|
||||
raise PackagingFileError("file '%s' does not exist" %
|
||||
os.path.abspath(path))
|
||||
config.read(path)
|
||||
config.read(path, encoding='utf-8')
|
||||
|
||||
kwargs = {}
|
||||
for arg in D1_D2_SETUP_ARGS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue