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 martin.panter
Recipients PaulMcMillan, benjamin.peterson, christian.heimes, martin.panter, orsenthil, pitrou, python-dev, soilandreyes, vstinner, yaaboukir, ztane
Date 2018-07-30.13:15:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532956546.76.0.56676864532.issue23505@psf.upfronthosting.co.za>
In-reply-to
Content
Issue 34276 was opened about a similar case for “file:” URLs. I believe both “file:” scheme and no-scheme cases are a regression and could be fixed by adding another pair of slashes (an empty “netloc” part):

>>> urlparse("////foo.com")  # No change
ParseResult(scheme='', netloc='', path='//foo.com', params='', query='', fragment='')
>>> urlunparse(_)  # Knows to escape slashes with another double-slash
'////foo.com'
History
Date User Action Args
2018-07-30 13:15:47martin.pantersetrecipients: + martin.panter, orsenthil, pitrou, vstinner, christian.heimes, benjamin.peterson, python-dev, PaulMcMillan, ztane, soilandreyes, yaaboukir
2018-07-30 13:15:46martin.pantersetmessageid: <1532956546.76.0.56676864532.issue23505@psf.upfronthosting.co.za>
2018-07-30 13:15:46martin.panterlinkissue23505 messages
2018-07-30 13:15:46martin.pantercreate