diff options
author | Éric Araujo <merwok@netwok.org> | 2011-06-12 21:02:57 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-06-12 21:02:57 (GMT) |
commit | 8d233f2cb0e914ec553dafb86b66533681a90040 (patch) | |
tree | 3268d6cef233eb15b6da610bb2ab97555b61089b /Lib/packaging/util.py | |
parent | 043f5ae697859e21641419d6a3bdd208eb34d004 (diff) | |
download | cpython-8d233f2cb0e914ec553dafb86b66533681a90040.zip cpython-8d233f2cb0e914ec553dafb86b66533681a90040.tar.gz cpython-8d233f2cb0e914ec553dafb86b66533681a90040.tar.bz2 |
Also specify encoding when reading setup.cfg (#12320)
Diffstat (limited to 'Lib/packaging/util.py')
-rw-r--r-- | Lib/packaging/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/util.py b/Lib/packaging/util.py index 29994c0..4dff547 100644 --- a/Lib/packaging/util.py +++ b/Lib/packaging/util.py @@ -1044,7 +1044,7 @@ def cfg_to_args(path='setup.cfg'): if not os.path.exists(path): raise PackagingFileError("file '%s' does not exist" % os.path.abspath(path)) - config.read(path) + config.read(path, encoding='utf-8') kwargs = {} for arg in D1_D2_SETUP_ARGS: |