summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-02-20 22:13:01 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-02-20 22:13:01 (GMT)
commita241d0a8a2db3ac1c0bbb61988ed831d605d2814 (patch)
treec6c9c846cb94847b93d3e92be250e1712881e001 /Lib/urllib.py
parent502f8eb50b2e2968534da6cdfafb563615cc5798 (diff)
downloadcpython-a241d0a8a2db3ac1c0bbb61988ed831d605d2814.zip
cpython-a241d0a8a2db3ac1c0bbb61988ed831d605d2814.tar.gz
cpython-a241d0a8a2db3ac1c0bbb61988ed831d605d2814.tar.bz2
Merged revisions 78268 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78268 | senthil.kumaran | 2010-02-21 03:35:34 +0530 (Sun, 21 Feb 2010) | 3 lines Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo") ........
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 03f6f5a..2fdf927 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -177,7 +177,7 @@ class URLopener:
fullurl = unwrap(toBytes(fullurl))
# percent encode url. fixing lame server errors like space within url
# parts
- fullurl = quote(fullurl, safe="%/:=&?~#+!$,;'@()*[]")
+ fullurl = quote(fullurl, safe="%/:=&?~#+!$,;'@()*[]|")
if self.tempcache and fullurl in self.tempcache:
filename, headers = self.tempcache[fullurl]
fp = open(filename, 'rb')