diff options
author | Guido van Rossum <guido@python.org> | 2007-05-03 17:18:26 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-03 17:18:26 +0000 |
commit | f7ab3a8433ba1ed8a0e19b5f993180daa8199b52 (patch) | |
tree | 9abbac7b8a7d825808281d472438582864b14374 /Lib/test/test_codeccallbacks.py | |
parent | b073f81ebad8246da83b7c7aef0031e86ad228ef (diff) | |
download | cpython-f7ab3a8433ba1ed8a0e19b5f993180daa8199b52.tar.gz |
Rename 'unicode' to 'str' in its tp_name field. Rename 'str' to 'str8'.
Change all occurrences of unichr to chr.
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
-rw-r--r-- | Lib/test/test_codeccallbacks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py index b9340738e6..5215b87254 100644 --- a/Lib/test/test_codeccallbacks.py +++ b/Lib/test/test_codeccallbacks.py @@ -137,7 +137,7 @@ class CodecCallbackTest(unittest.TestCase): # base encodings. sin = "a\xac\u1234\u20ac\u8000" if sys.maxunicode > 0xffff: - sin += unichr(sys.maxunicode) + sin += chr(sys.maxunicode) sout = "a\\xac\\u1234\\u20ac\\u8000" if sys.maxunicode > 0xffff: sout += "\\U%08x" % sys.maxunicode @@ -509,7 +509,7 @@ class CodecCallbackTest(unittest.TestCase): ) # Use the correct exception cs = (0, 1, 9, 10, 99, 100, 999, 1000, 9999, 10000, 0x3042) - s = "".join(unichr(c) for c in cs) + s = "".join(chr(c) for c in cs) self.assertEquals( codecs.xmlcharrefreplace_errors( UnicodeEncodeError("ascii", s, 0, len(s), "ouch") @@ -650,7 +650,7 @@ class CodecCallbackTest(unittest.TestCase): v = (1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000) if sys.maxunicode>=100000: v += (100000, 500000, 1000000) - s = "".join([unichr(x) for x in v]) + s = "".join([chr(x) for x in v]) codecs.register_error("test.xmlcharrefreplace", codecs.xmlcharrefreplace_errors) for enc in ("ascii", "iso-8859-15"): for err in ("xmlcharrefreplace", "test.xmlcharrefreplace"): |