Kaydet (Commit) c94f16f1 authored tarafından Guido van Rossum's avatar Guido van Rossum

Oops! Of course, Tim is right -- when the item is not a hex number,

the '%' should be put back in.
üst 52e86ad0
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment