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 Gnanesh
Recipients Gnanesh, neethun
Date 2021-06-10.11:52:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623325944.24.0.933085857135.issue44375@roundup.psfhosted.org>
In-reply-to
Content
Hey neethu,

For empty schemes, it should have a prefix of "//" in the URL to parse it correctly.

Try:
> urlparse('//www.cwi.nl:80')

ParseResult(scheme='', netloc='www.cwi.nl:80', path='', params='', query='', fragment='')


Here's a comment from the docs (https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse): 
> Following the syntax specifications in RFC 1808, urlparse recognizes a netloc only if it is properly introduced by ‘//’. Otherwise the input is presumed to be a relative URL and thus to start with a path component.
History
Date User Action Args
2021-06-10 11:52:24Gnaneshsetrecipients: + Gnanesh, neethun
2021-06-10 11:52:24Gnaneshsetmessageid: <1623325944.24.0.933085857135.issue44375@roundup.psfhosted.org>
2021-06-10 11:52:24Gnaneshlinkissue44375 messages
2021-06-10 11:52:24Gnaneshcreate