Oops! Of course, Tim is right -- when the item is not a hex number,
the '%' should be put back in.
This commit is contained in:
parent
52e86ad05b
commit
c94f16f156
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue