More 2to3 fixes in the Tools directory. Fixes #2893.
diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py
index c291be4..dade1ce 100644
--- a/Tools/unicode/comparecodecs.py
+++ b/Tools/unicode/comparecodecs.py
@@ -15,7 +15,7 @@
mismatch = 0
# Check encoding
for i in range(sys.maxunicode):
- u = unichr(i)
+ u = chr(i)
try:
c1 = u.encode(encoding1)
except UnicodeError as reason:
@@ -34,11 +34,11 @@
try:
u1 = c.decode(encoding1)
except UnicodeError:
- u1 = u'<undefined>'
+ u1 = '<undefined>'
try:
u2 = c.decode(encoding2)
except UnicodeError:
- u2 = u'<undefined>'
+ u2 = '<undefined>'
if u1 != u2:
print(' * decoding mismatch for 0x%04X: %-14r != %r' % \
(i, u1, u2))