mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
This commit is contained in:
parent
e9cf97cf20
commit
1eff0fc3cd
2 changed files with 3 additions and 1 deletions
|
@ -666,6 +666,8 @@ Documentation
|
||||||
Tools/Demos
|
Tools/Demos
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
- Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
|
||||||
|
|
||||||
- Issue #14695: Fix missing support for starred assignments in
|
- Issue #14695: Fix missing support for starred assignments in
|
||||||
Tools/parser/unparse.py.
|
Tools/parser/unparse.py.
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ def compare_codecs(encoding1, encoding2):
|
||||||
mismatch += 1
|
mismatch += 1
|
||||||
# Check decoding
|
# Check decoding
|
||||||
for i in range(256):
|
for i in range(256):
|
||||||
c = chr(i)
|
c = bytes([i])
|
||||||
try:
|
try:
|
||||||
u1 = c.decode(encoding1)
|
u1 = c.decode(encoding1)
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue