Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03fdbc commit 3764595Copy full SHA for 3764595
1 file changed
Lib/urllib.py
@@ -326,12 +326,12 @@ def open_local_file(self, url):
326
host, file = splithost(url)
327
if not host:
328
return addinfourl(open(url2pathname(file), 'rb'),
329
- headers, 'file:'+pathname2url(file))
+ headers, 'file:'+file)
330
host, port = splitport(host)
331
if not port \
332
and socket.gethostbyname(host) in (localhost(), thishost()):
333
334
335
raise IOError, ('local file error', 'not on local host')
336
337
# Use FTP protocol
0 commit comments