diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-05 22:11:13 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-05 22:11:13 (GMT) |
commit | d4d8ae5a42ac859c95bdcb2a608c1b972c56efac (patch) | |
tree | 96b6f75a6e67897eb3391018f6c2857c17736662 | |
parent | e01aa53ea61f67418ee14e11289c68992b0f38db (diff) | |
download | cpython-d4d8ae5a42ac859c95bdcb2a608c1b972c56efac.zip cpython-d4d8ae5a42ac859c95bdcb2a608c1b972c56efac.tar.gz cpython-d4d8ae5a42ac859c95bdcb2a608c1b972c56efac.tar.bz2 |
Issue #9561: packaging now writes egg-info files using UTF-8
instead of the locale encoding
-rw-r--r-- | Lib/packaging/tests/test_util.py | 4 | ||||
-rw-r--r-- | 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 index 5e804c2..c3d91aa 100644 --- a/Lib/packaging/tests/test_util.py +++ b/Lib/packaging/tests/test_util.py @@ -946,7 +946,7 @@ class PackagingLibChecks(support.TempdirManager, 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 @@ class PackagingLibChecks(support.TempdirManager, 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): @@ -271,7 +271,7 @@ Core and Builtins 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 |