diff options
author | Ezio Melotti <none@none> | 2011-10-04 16:06:00 (GMT) |
---|---|---|
committer | Ezio Melotti <none@none> | 2011-10-04 16:06:00 (GMT) |
commit | a9860aeb08fce7494a963746c04102d23f1cf4ac (patch) | |
tree | be8e64b6a66b80997969362be5795b75ac7b313a /Tools/unicode/comparecodecs.py | |
parent | b7591d4780c76e17db4e143a097d128b124c2e66 (diff) | |
download | cpython-a9860aeb08fce7494a963746c04102d23f1cf4ac.zip cpython-a9860aeb08fce7494a963746c04102d23f1cf4ac.tar.gz cpython-a9860aeb08fce7494a963746c04102d23f1cf4ac.tar.bz2 |
#13054: fix usage of sys.maxunicode after PEP-393.
Diffstat (limited to 'Tools/unicode/comparecodecs.py')
-rw-r--r-- | Tools/unicode/comparecodecs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py index 0f5c1e2..7de14fd 100644 --- a/Tools/unicode/comparecodecs.py +++ b/Tools/unicode/comparecodecs.py @@ -14,7 +14,7 @@ def compare_codecs(encoding1, encoding2): print('Comparing encoding/decoding of %r and %r' % (encoding1, encoding2)) mismatch = 0 # Check encoding - for i in range(sys.maxunicode): + for i in range(sys.maxunicode+1): u = chr(i) try: c1 = u.encode(encoding1) |