Author christian.heimes
Recipients christian.heimes, martin.panter, matrixise, push0ebp
Date 2019-02-06.10:55:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549450551.83.0.177640207786.issue35907@roundup.psfhosted.org>
In-reply-to
Content
Only the Python 2 urllib module is affected. Python 2.7's urllib2 also correctly fails with local_file://

>>> import urllib2
>>> urllib2.urlopen('local_file:///etc/passwd').read()[:30]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/heimes/dev/python/2.7/Lib/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/home/heimes/dev/python/2.7/Lib/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/home/heimes/dev/python/2.7/Lib/urllib2.py", line 452, in _open
    'unknown_open', req)
  File "/home/heimes/dev/python/2.7/Lib/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/home/heimes/dev/python/2.7/Lib/urllib2.py", line 1266, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: local_file>
History
Date User Action Args
2019-02-06 10:55:53christian.heimessetrecipients: + christian.heimes, martin.panter, matrixise, push0ebp
2019-02-06 10:55:51christian.heimessetmessageid: <1549450551.83.0.177640207786.issue35907@roundup.psfhosted.org>
2019-02-06 10:55:51christian.heimeslinkissue35907 messages
2019-02-06 10:55:51christian.heimescreate