mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue