diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-10-17 14:13:55 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-10-17 14:13:55 (GMT) |
commit | 31605ace0d9247eaadd7377476128f7c1660e7d9 (patch) | |
tree | 4a0bc5c527ebc204d165a43f974a4c536299f510 /Tools | |
parent | 65b4b40e245bd7f9aee4702eed6f448f12921a8a (diff) | |
parent | 1eff0fc3cd258c12433f28f441028534ff0ee600 (diff) | |
download | cpython-31605ace0d9247eaadd7377476128f7c1660e7d9.zip cpython-31605ace0d9247eaadd7377476128f7c1660e7d9.tar.gz cpython-31605ace0d9247eaadd7377476128f7c1660e7d9.tar.bz2 |
Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/unicode/comparecodecs.py | 2 |
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: |