From: Senthil Kumaran Date: Tue, 5 May 2009 17:34:42 +0000 (+0000) Subject: Fixing issue5861 - test_urllib fails on windows. Agree to comment to have ':' in... X-Git-Tag: v2.7a1~1275 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c72420a68e960fc703eb927cb2425744e209261;p=python Fixing issue5861 - test_urllib fails on windows. Agree to comment to have ':' in pathname2url as windows recognizes it. test_urllib passes now. --- diff --git a/Lib/nturl2path.py b/Lib/nturl2path.py index 31064044e7..29ea80f9d9 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)