Commit 1eff0fc3 authored by Antoine Pitrou's avatar Antoine Pitrou

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

parent e9cf97cf
......@@ -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.
......
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment