mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fixing issue5861 - test_urllib fails on windows. Agree to comment to have ':' in pathname2url as windows recognizes it. test_urllib passes now.
This commit is contained in:
parent
588b54b646
commit
2c72420a68
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def pathname2url(p):
|
||||||
|
|
||||||
drive = urllib.quote(comp[0].upper())
|
drive = urllib.quote(comp[0].upper())
|
||||||
components = comp[1].split('\\')
|
components = comp[1].split('\\')
|
||||||
path = '///' + drive + '|'
|
path = '///' + drive + ':'
|
||||||
for comp in components:
|
for comp in components:
|
||||||
if comp:
|
if comp:
|
||||||
path = path + '/' + urllib.quote(comp)
|
path = path + '/' + urllib.quote(comp)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue