summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/util.py
diff options
context:
space:
mode:
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)
commit8d233f2cb0e914ec553dafb86b66533681a90040 (patch)
tree3268d6cef233eb15b6da610bb2ab97555b61089b /Lib/packaging/util.py
parent043f5ae697859e21641419d6a3bdd208eb34d004 (diff)
downloadcpython-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.py2
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: