Merged revisions 78268 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk
This commit is contained in:
Senthil Kumaran 2010-02-20 22:19:04 +00:00
parent a11865b8c6
commit 734f05925e
2 changed files with 6 additions and 2 deletions

View file

@ -1426,7 +1426,7 @@ class URLopener:
def open(self, fullurl, data=None):
"""Use URLopener().open(file) instead of open(file, 'r')."""
fullurl = unwrap(to_bytes(fullurl))
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')