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")
........
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 @@
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')