summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 2c6d878..4492e99 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -1011,7 +1011,9 @@ def unquote_plus(s):
s = string.join(string.split(s, '+'), ' ')
return unquote(s)
-always_safe = string.letters + string.digits + '_,.-'
+always_safe = ('ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+ 'abcdefghijklmnopqrstuvwxyz'
+ '0123456789' '_,.-')
def quote(s, safe = '/'):
"""quote('abc def') -> 'abc%20def'."""
# XXX Can speed this up an order of magnitude
@@ -1043,7 +1045,6 @@ def urlencode(dict):
l.append(k + '=' + v)
return string.join(l, '&')
-
# Proxy handling
def getproxies_environment():
"""Return a dictionary of scheme -> proxy server URL mappings.