Martin Panter <[email protected]> added the comment:
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'
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue23505>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com