[Python-checkins] cpython (3.2): Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
antoine.pitrou
python-checkins at python.org
Wed Oct 17 16:16:46 CEST 2012
http://hg.python.org/cpython/rev/98f64cbed2ac
changeset: 79791:98f64cbed2ac
branch: 3.2
parent: 79788:a0fba0382ae0
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Oct 17 16:12:30 2012 +0200
summary:
Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
files:
Misc/NEWS | 2 ++
Tools/unicode/comparecodecs.py | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -666,6 +666,8 @@
Tools/Demos
-----------
+- Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
+
- Issue #14695: Fix missing support for starred assignments in
Tools/parser/unparse.py.
diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py
--- a/Tools/unicode/comparecodecs.py
+++ b/Tools/unicode/comparecodecs.py
@@ -30,7 +30,7 @@
mismatch += 1
# Check decoding
for i in range(256):
- c = chr(i)
+ c = bytes([i])
try:
u1 = c.decode(encoding1)
except UnicodeError:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list