summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/urllib.py4
1 files changed, 2 insertions, 2 deletions
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 @@ 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):