summaryrefslogtreecommitdiffstats
path: root/Lib/nturl2path.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-05-05 17:34:42 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2009-05-05 17:34:42 (GMT)
commit2c72420a68e960fc703eb927cb2425744e209261 (patch)
tree1a6136f29cbb8bbdb1d42aaaf17da20fadf4e5f5 /Lib/nturl2path.py
parent588b54b646ff3ca7e86e5b493e01f60b449d2246 (diff)
downloadcpython-2c72420a68e960fc703eb927cb2425744e209261.zip
cpython-2c72420a68e960fc703eb927cb2425744e209261.tar.gz
cpython-2c72420a68e960fc703eb927cb2425744e209261.tar.bz2
Fixing issue5861 - test_urllib fails on windows. Agree to comment to have ':' in pathname2url as windows recognizes it. test_urllib passes now.
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 31064044..29ea80f 100644
--- a/Lib/nturl2path.py
+++ b/Lib/nturl2path.py
@@ -56,7 +56,7 @@ def pathname2url(p):
drive = urllib.quote(comp[0].upper())
components = comp[1].split('\\')
- path = '///' + drive + '|'
+ path = '///' + drive + ':'
for comp in components:
if comp:
path = path + '/' + urllib.quote(comp)