summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-03 17:18:26 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-03 17:18:26 (GMT)
commit84fc66dd020931c14be8b13fcbdb9a8f295141c9 (patch)
tree989d036b1f6f9297d475a166179ec92ff3c7aad9 /Lib/urllib.py
parentef87d6ed94780fe00250a551031023aeb2898365 (diff)
downloadcpython-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/urllib.py')
-rw-r--r--Lib/urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 6d94605..fe1c74f 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -1158,7 +1158,7 @@ def unquote(s):
except KeyError:
res[i] = '%' + item
except UnicodeDecodeError:
- res[i] = unichr(int(item[:2], 16)) + item[2:]
+ res[i] = chr(int(item[:2], 16)) + item[2:]
return "".join(res)
def unquote_plus(s):