commit | dd13dd4bcc27fc77be7590ab0c9bf1c7c883201d | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu May 19 18:45:32 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu May 19 18:45:32 2011 +0200 |
tree | 6214edb819cd9f5f47d5ff8142d151f5e6aa2438 | |
parent | 4c9706bd275134d513c61e07764215a7d0c2302c [diff] [blame] |
Issue #12112: packaging reads and writes setup.cfg using UTF-8
diff --git a/Lib/packaging/create.py b/Lib/packaging/create.py index 0676cf1..1df73da 100644 --- a/Lib/packaging/create.py +++ b/Lib/packaging/create.py
@@ -276,7 +276,7 @@ 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'):