diff options
author | Guido van Rossum <guido@python.org> | 2007-05-03 17:18:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-03 17:18:26 (GMT) |
commit | 84fc66dd020931c14be8b13fcbdb9a8f295141c9 (patch) | |
tree | 989d036b1f6f9297d475a166179ec92ff3c7aad9 /Lib/test/test_multibytecodec.py | |
parent | ef87d6ed94780fe00250a551031023aeb2898365 (diff) | |
download | cpython-84fc66dd020931c14be8b13fcbdb9a8f295141c9.zip cpython-84fc66dd020931c14be8b13fcbdb9a8f295141c9.tar.gz cpython-84fc66dd020931c14be8b13fcbdb9a8f295141c9.tar.bz2 |
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_multibytecodec.py')
-rw-r--r-- | Lib/test/test_multibytecodec.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py index 8ea4bf9..0b2021a 100644 --- a/Lib/test/test_multibytecodec.py +++ b/Lib/test/test_multibytecodec.py @@ -210,9 +210,9 @@ class Test_ISO2022(unittest.TestCase): def test_bug1572832(self): if sys.maxunicode >= 0x10000: - myunichr = unichr + myunichr = chr else: - myunichr = lambda x: unichr(0xD7C0+(x>>10)) + unichr(0xDC00+(x&0x3FF)) + myunichr = lambda x: chr(0xD7C0+(x>>10)) + chr(0xDC00+(x&0x3FF)) for x in xrange(0x10000, 0x110000): # Any ISO 2022 codec will cause the segfault |