Browse Source

Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.

pull/2332/head
Antoine Pitrou 13 years ago
parent
commit
1eff0fc3cd
  1. 2
      Misc/NEWS
  2. 2
      Tools/unicode/comparecodecs.py

2
Misc/NEWS

@ -666,6 +666,8 @@ Documentation
Tools/Demos
-----------
- Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
- Issue #14695: Fix missing support for starred assignments in
Tools/parser/unparse.py.

2
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:

Loading…
Cancel
Save