From 1eff0fc3cd258c12433f28f441028534ff0ee600 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 17 Oct 2012 16:12:30 +0200 Subject: Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka. --- Tools/unicode/comparecodecs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tools/unicode/comparecodecs.py') diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py index 0f5c1e24a3..01303dbcb7 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: -- cgit v1.2.1