diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-19 16:45:32 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-19 16:45:32 (GMT) |
commit | dd13dd4bcc27fc77be7590ab0c9bf1c7c883201d (patch) | |
tree | 6214edb819cd9f5f47d5ff8142d151f5e6aa2438 /Lib/packaging/create.py | |
parent | 4c9706bd275134d513c61e07764215a7d0c2302c (diff) | |
download | cpython-dd13dd4bcc27fc77be7590ab0c9bf1c7c883201d.zip cpython-dd13dd4bcc27fc77be7590ab0c9bf1c7c883201d.tar.gz cpython-dd13dd4bcc27fc77be7590ab0c9bf1c7c883201d.tar.bz2 |
Issue #12112: packaging reads and writes setup.cfg using UTF-8
Diffstat (limited to 'Lib/packaging/create.py')
-rw-r--r-- | Lib/packaging/create.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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'): |