diff Tools/unicode/comparecodecs.py @ 79791:98f64cbed2ac 3.2

Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 17 Oct 2012 16:12:30 +0200
parents fcfe324663a6
children f281d7700339
line wrap: on
line diff
--- a/Tools/unicode/comparecodecs.py	Wed Oct 17 16:41:28 2012 +0300
+++ b/Tools/unicode/comparecodecs.py	Wed Oct 17 16:12:30 2012 +0200
@@ -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: