Bug #1378455: a problem of urllib using open_local_file
This commit is contained in:
parent
6ee339109f
commit
07f159de86
|
@ -10,6 +10,8 @@ def url2pathname(url):
|
|||
C:\foo\bar\spam.foo
|
||||
"""
|
||||
import string, urllib
|
||||
# Windows itself uses ":" even in URLs.
|
||||
url = url.replace(':', '|')
|
||||
if not '|' in url:
|
||||
# No drive specifier, just convert slashes
|
||||
if url[:4] == '////':
|
||||
|
|
Loading…
Reference in New Issue