[Python-checkins] cpython: Issue #9561: packaging now writes egg-info files using UTF-8
victor.stinner
python-checkins at python.org
Tue Sep 6 00:11:39 CEST 2011
http://hg.python.org/cpython/rev/56ab3257ca13
changeset: 72296:56ab3257ca13
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Tue Sep 06 00:11:13 2011 +0200
summary:
Issue #9561: packaging now writes egg-info files using UTF-8
instead of the locale encoding
files:
Lib/packaging/tests/test_util.py | 4 ++--
Misc/NEWS | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/packaging/tests/test_util.py b/Lib/packaging/tests/test_util.py
--- a/Lib/packaging/tests/test_util.py
+++ b/Lib/packaging/tests/test_util.py
@@ -946,7 +946,7 @@
def _distutils_pkg_info(self):
tmp = self._distutils_setup_py_pkg()
- self.write_file([tmp, 'PKG-INFO'], '')
+ self.write_file([tmp, 'PKG-INFO'], '', encoding='UTF-8')
return tmp
def _setup_cfg_with_no_metadata_pkg(self):
@@ -971,7 +971,7 @@
def _pkg_info_with_no_distutils(self):
tmp = self._random_setup_py_pkg()
- self.write_file([tmp, 'PKG-INFO'], '')
+ self.write_file([tmp, 'PKG-INFO'], '', encoding='UTF-8')
return tmp
def _random_setup_py_pkg(self):
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -271,7 +271,7 @@
Library
-------
-- Issue #9561: distutils now reads and writes egg-info files using UTF-8,
+- Issue #9561: distutils and packaging now writes egg-info files using UTF-8,
instead of the locale encoding.
- Issue #8286: The distutils command sdist will print a warning message instead
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list