mirror of https://github.com/python/cpython
merge r72343. Fix for issue7043
This commit is contained in:
parent
441dad8145
commit
0240c924db
|
@ -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…
Reference in New Issue