summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-10-17 14:12:30 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-10-17 14:12:30 (GMT)
commit1eff0fc3cd258c12433f28f441028534ff0ee600 (patch)
treead68b0ca1ea32f7dc191080cc1c36ee430b71b1e /Tools
parente9cf97cf20711dcede2e44b58f3ccc7d71280cc8 (diff)
downloadcpython-1eff0fc3cd258c12433f28f441028534ff0ee600.zip
cpython-1eff0fc3cd258c12433f28f441028534ff0ee600.tar.gz
cpython-1eff0fc3cd258c12433f28f441028534ff0ee600.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 0f5c1e2..01303db 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: