Message 322676 - Python tracker
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'