commit | c94f16f15669faf494a99961334ebbaac88c54d9 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jun 29 00:42:54 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jun 29 00:42:54 1998 +0000 |
tree | a613c4c79f36be64a3b6f802bc73a703fbc17b83 | |
parent | 52e86ad05b3b0471bb56a66c29c6a8c6d864d9a2 [diff] [blame] |
Oops! Of course, Tim is right -- when the item is not a hex number, the '%' should be put back in.
diff --git a/Lib/urllib.py b/Lib/urllib.py index ecf5057..d294c4e 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py
@@ -867,9 +867,9 @@ myappend(mychr(myatoi(item[:2], 16)) + item[2:]) except: - myappend(item) + myappend('%' + item) else: - myappend(item) + myappend('%' + item) return string.join(res, "") def unquote_plus(s):