Kaydet (Commit) 07f159de authored tarafından Georg Brandl's avatar Georg Brandl

Bug #1378455: a problem of urllib using open_local_file

üst 6ee33910
......@@ -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] == '////':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment