From: Antoine Pitrou Date: Wed, 17 Oct 2012 14:12:30 +0000 (+0200) Subject: Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka. X-Git-Tag: v3.2.4rc1~432 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eff0fc3cd258c12433f28f441028534ff0ee600;p=thirdparty%2FPython%2Fcpython.git Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka. --- diff --git a/Misc/NEWS b/Misc/NEWS index e1356add4720..0efbefae70a0 100644 --- a/Misc/NEWS +++ b/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. diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py index 0f5c1e24a3a2..01303dbcb74b 100644 --- a/Tools/unicode/comparecodecs.py +++ b/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: