summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Misc/NEWS2
-rw-r--r--Tools/unicode/comparecodecs.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 9441412..228db08 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -168,6 +168,8 @@ Documentation
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
index 7de14fd..6525ddf 100644
--- a/Tools/unicode/comparecodecs.py
+++ b/Tools/unicode/comparecodecs.py
@@ -30,7 +30,7 @@ def compare_codecs(encoding1, encoding2):
mismatch += 1
# Check decoding
for i in range(256):
- c = chr(i)
+ c = bytes([i])
try:
u1 = c.decode(encoding1)
except UnicodeError: