Message334925
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> |
|
Date |
User |
Action |
Args |
2019-02-06 10:55:53 | christian.heimes | set | recipients:
+ christian.heimes, martin.panter, matrixise, push0ebp |
2019-02-06 10:55:51 | christian.heimes | set | messageid: <1549450551.83.0.177640207786.issue35907@roundup.psfhosted.org> |
2019-02-06 10:55:51 | christian.heimes | link | issue35907 messages |
2019-02-06 10:55:51 | christian.heimes | create | |
|