FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy St… · python-emscripten/cpython@e9631e5 · GitHub

Repository navigation

Commit e9631e5

Browse files
committed
Issue python#15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
2 parents a3f862e + 31605ac commit e9631e5

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
@@ -207,5 +207,7 @@ Documentation
207207
Tools/Demos
208208
-----------
209209

210+
- Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
211+
210212

211213
**(For information about older versions, consult the HISTORY file.)**

‎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)

Back | FazBrowse Home | New Git URL