Mercurial > cpython-lru_cache-weakref
diff Tools/unicode/comparecodecs.py @ 72666:f39b26ca7f3d
#13054: fix usage of sys.maxunicode after PEP-393.
| author | Ezio Melotti |
|---|---|
| date | Tue, 04 Oct 2011 19:06:00 +0300 |
| parents | fcfe324663a6 |
| children | f281d7700339 |
line wrap: on
line diff
--- a/Tools/unicode/comparecodecs.py Tue Oct 04 16:18:15 2011 +0200 +++ b/Tools/unicode/comparecodecs.py Tue Oct 04 19:06:00 2011 +0300 @@ -14,7 +14,7 @@ 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)
