]> granicus.if.org Git - python/commitdiff
Fixing issue5861 - test_urllib fails on windows. Agree to comment to have ':' in...
authorSenthil Kumaran <orsenthil@gmail.com>
Tue, 5 May 2009 17:34:42 +0000 (17:34 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Tue, 5 May 2009 17:34:42 +0000 (17:34 +0000)
Lib/nturl2path.py

index 31064044e73d7687986618ecea165a2f51bd543c..29ea80f9d9e9e09001e41b4c92ea45e1e3017627 100644 (file)
@@ -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)