From c94f16f15669faf494a99961334ebbaac88c54d9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 29 Jun 1998 00:42:54 +0000 Subject: [PATCH] Oops! Of course, Tim is right -- when the item is not a hex number, the '%' should be put back in. --- Lib/urllib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/urllib.py b/Lib/urllib.py index ecf505744ea..d294c4ef61b 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):