Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
This commit is contained in:
commit
31605ace0d
|
@ -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?
|
||||
===========================
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue