mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #12112: packaging reads and writes setup.cfg using UTF-8
This commit is contained in:
parent
4c9706bd27
commit
dd13dd4bcc
5 changed files with 11 additions and 11 deletions
|
|
@ -276,7 +276,7 @@ class MainProgram:
|
|||
return
|
||||
shutil.move(_FILENAME, '%s.old' % _FILENAME)
|
||||
|
||||
with open(_FILENAME, 'w') as fp:
|
||||
with open(_FILENAME, 'w', encoding='utf-8') as fp:
|
||||
fp.write('[metadata]\n')
|
||||
# simple string entries
|
||||
for name in ('name', 'version', 'summary', 'download_url'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue