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/encodings | |
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/encodings')
-rw-r--r-- | Lib/encodings/punycode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/punycode.py b/Lib/encodings/punycode.py index c86aad7..89906ae 100644 --- a/Lib/encodings/punycode.py +++ b/Lib/encodings/punycode.py @@ -176,7 +176,7 @@ def insertion_sort(base, extended, errors): raise UnicodeError, ("Invalid character U+%x" % char) char = ord('?') pos = pos % (len(base) + 1) - base = base[:pos] + unichr(char) + base[pos:] + base = base[:pos] + chr(char) + base[pos:] bias = adapt(delta, (extpos == 0), len(base)) extpos = newpos return base |