Bug #1378455: a problem of urllib using open_local_file

This commit is contained in:
Georg Brandl 2005-12-15 21:59:00 +00:00
parent 6ee339109f
commit 07f159de86
1 changed files with 2 additions and 0 deletions

View File

@ -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] == '////':