[Python-checkins] cpython (merge 3.2 -> 3.3): Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
antoine.pitrou
python-checkins at python.org
Wed Oct 17 16:16:47 CEST 2012
http://hg.python.org/cpython/rev/f281d7700339
changeset: 79792:f281d7700339
branch: 3.3
parent: 79789:7c0de8be4eaf
parent: 79791:98f64cbed2ac
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Oct 17 16:13:55 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
@@ -168,6 +168,8 @@
Tools/Demos
-----------
+- Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
+
What's New in Python 3.3.0?
===========================
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