[Python-checkins] cpython: Also specify encoding when reading setup.cfg (#12320)
eric.araujo
python-checkins at python.org
Sun Jun 12 23:03:11 CEST 2011
http://hg.python.org/cpython/rev/0e22c47b47a3
changeset: 70808:0e22c47b47a3
user: Éric Araujo <merwok at netwok.org>
date: Sun Jun 12 23:02:57 2011 +0200
summary:
Also specify encoding when reading setup.cfg (#12320)
files:
Lib/packaging/util.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/packaging/util.py b/Lib/packaging/util.py
--- a/Lib/packaging/util.py
+++ b/Lib/packaging/util.py
@@ -1044,7 +1044,7 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list