Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
diff --git a/Lib/urllib.py b/Lib/urllib.py
index d4740e9..58e750a 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -179,7 +179,7 @@
         fullurl = unwrap(toBytes(fullurl))
         # percent encode url, fixing lame server errors for e.g, like space
         # within url paths.
-        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')