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/config.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/config.py')
-rw-r--r-- | Lib/packaging/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class Config: 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) |