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 stestagg
Recipients Alyan, stestagg
Date 2021-03-15.00:27:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615768033.51.0.211405925844.issue37820@roundup.psfhosted.org>
In-reply-to
Content
This appears to have been fixed in python 3:

rx.py:
import urllib.request
print(urllib.request.urlopen('URL:/etc/passwd').read()[:30])

$> python rx.py 
Traceback (most recent call last):
  File "rx.py", line 2, in <module>
    print(urllib.request.urlopen('URL:/etc/passwd').read()[:30])
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 501, in open
    req = Request(fullurl, data)
  File "/usr/lib/python3.9/urllib/request.py", line 320, in __init__
    self.full_url = url
  File "/usr/lib/python3.9/urllib/request.py", line 346, in full_url
    self._parse()
  File "/usr/lib/python3.9/urllib/request.py", line 375, in _parse
    raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: '/etc/passwd'
History
Date User Action Args
2021-03-15 00:27:13stestaggsetrecipients: + stestagg, Alyan
2021-03-15 00:27:13stestaggsetmessageid: <1615768033.51.0.211405925844.issue37820@roundup.psfhosted.org>
2021-03-15 00:27:13stestagglinkissue37820 messages
2021-03-15 00:27:13stestaggcreate