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/config.py b/Lib/packaging/config.py index 9239f4a..9875f68 100644 --- a/Lib/packaging/config.py +++ b/Lib/packaging/config.py
@@ -282,7 +282,7 @@ for filename in filenames: logger.debug(" reading %s", filename) - parser.read(filename) + parser.read(filename, encoding='utf-8') if os.path.split(filename)[-1] == 'setup.cfg': self._read_setup_cfg(parser, filename)