Commit b6784dc5 authored by Guido van Rossum's avatar Guido van Rossum

Interpret three slashes in file: URL as local file (for Netscape on

Windows/Mac).
parent 4f46fc6d
......@@ -281,7 +281,7 @@ class URLopener:
# Use local file or FTP depending on form of URL
def open_file(self, url):
if url[:2] == '//':
if url[:2] == '//' and url[2:3] != '/':
return self.open_ftp(url)
else:
return self.open_local_file(url)
......
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