summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/request.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-02-20 22:19:04 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-02-20 22:19:04 (GMT)
commit734f05925ef57e34e13efd501a47556a98ea3085 (patch)
treead8b05aae61a0a9f5bfdeff7ed0f49dcb248a276 /Lib/urllib/request.py
parenta11865b8c6dff87bc18b23cded2ea554dd190bb7 (diff)
downloadcpython-734f05925ef57e34e13efd501a47556a98ea3085.zip
cpython-734f05925ef57e34e13efd501a47556a98ea3085.tar.gz
cpython-734f05925ef57e34e13efd501a47556a98ea3085.tar.bz2
Merged revisions 78268 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Diffstat (limited to 'Lib/urllib/request.py')
-rw-r--r--Lib/urllib/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 9332aa5..07a7ee6 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -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')