summaryrefslogtreecommitdiffstats
path: root/Lib/nturl2path.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-05-05 18:41:13 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2009-05-05 18:41:13 (GMT)
commit690ce9b353bc0a86d0886470adbaa50e813de3b8 (patch)
tree190c0c6730249003e6f2dc0a0918c8da94c749b8 /Lib/nturl2path.py
parent501927d541ecf23a2915d2133f03f761c3baa5bb (diff)
downloadcpython-690ce9b353bc0a86d0886470adbaa50e813de3b8.zip
cpython-690ce9b353bc0a86d0886470adbaa50e813de3b8.tar.gz
cpython-690ce9b353bc0a86d0886470adbaa50e813de3b8.tar.bz2
Fix for issue1153027, making Py3k changes similar to fix in issue918368.
This will address: a) urllib/ in py3k, b) urllib in py2x is addressed by issue918368. c) urllib2 in py2x was already addressed in Revision 43132.
Diffstat (limited to 'Lib/nturl2path.py')
-rw-r--r--Lib/nturl2path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/nturl2path.py b/Lib/nturl2path.py
index 1cfe827..ce9c3d3 100644
--- a/Lib/nturl2path.py
+++ b/Lib/nturl2path.py
@@ -56,7 +56,7 @@ def pathname2url(p):
drive = urllib.parse.quote(comp[0].upper())
components = comp[1].split('\\')
- path = '///' + drive + '|'
+ path = '///' + drive + ':'
for comp in components:
if comp:
path = path + '/' + urllib.parse.quote(comp)