From: Guido van Rossum Date: Mon, 29 Jun 1998 00:42:54 +0000 (+0000) Subject: Oops! Of course, Tim is right -- when the item is not a hex number, X-Git-Tag: v1.5.2a1~394 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c94f16f15669faf494a99961334ebbaac88c54d9;p=python 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 ecf505744e..d294c4ef61 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -867,9 +867,9 @@ def unquote(s): 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):