This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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/", line 154, in urlopen
    return, data, timeout)
  File "/home/heimes/dev/python/2.7/Lib/", line 429, in open
    response = self._open(req, data)
  File "/home/heimes/dev/python/2.7/Lib/", line 452, in _open
    'unknown_open', req)
  File "/home/heimes/dev/python/2.7/Lib/", line 407, in _call_chain
    result = func(*args)
  File "/home/heimes/dev/python/2.7/Lib/", 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:53christian.heimessetrecipients: + christian.heimes, martin.panter, matrixise, push0ebp
2019-02-06 10:55:51christian.heimessetmessageid: <>
2019-02-06 10:55:51christian.heimeslinkissue35907 messages
2019-02-06 10:55:51christian.heimescreate