summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index a0ecaac..dc2d2cf 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -645,7 +645,7 @@ def unquote(s):
if j < 0:
res = res + s[i:]
break
- res = res + (s[i:j] + chr(eval('0x' + s[j+1:j+3])))
+ res = res + (s[i:j] + chr(string.atoi(s[j+1:j+3], 16)))
i = j+3
return res