Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1eff0fc

Browse files
committed
Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
1 parent e9cf97c commit 1eff0fc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ Documentation
666666
Tools/Demos
667667
-----------
668668

669+
- Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
670+
669671
- Issue #14695: Fix missing support for starred assignments in
670672
Tools/parser/unparse.py.
671673

Tools/unicode/comparecodecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def compare_codecs(encoding1, encoding2):
3030
mismatch += 1
3131
# Check decoding
3232
for i in range(256):
33-
c = chr(i)
33+
c = bytes([i])
3434
try:
3535
u1 = c.decode(encoding1)
3636
except UnicodeError:

0 commit comments

Comments
 (0)