summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-10-17 14:14:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-10-17 14:14:40 (GMT)
commite9631e5d3a8d6d415f2c4d2dff4b4e6843630694 (patch)
treec977207dc594e509086c190434f5afa3ea751a86 /Tools
parenta3f862e915484a6b42f541d89f8aad081532662e (diff)
parent31605ace0d9247eaadd7377476128f7c1660e7d9 (diff)
downloadcpython-e9631e5d3a8d6d415f2c4d2dff4b4e6843630694.zip
cpython-e9631e5d3a8d6d415f2c4d2dff4b4e6843630694.tar.gz
cpython-e9631e5d3a8d6d415f2c4d2dff4b4e6843630694.tar.bz2
Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/unicode/comparecodecs.py2
1 files changed, 1 insertions, 1 deletions
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: