Message395522
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. |
|
Date |
User |
Action |
Args |
2021-06-10 11:52:24 | Gnanesh | set | recipients:
+ Gnanesh, neethun |
2021-06-10 11:52:24 | Gnanesh | set | messageid: <1623325944.24.0.933085857135.issue44375@roundup.psfhosted.org> |
2021-06-10 11:52:24 | Gnanesh | link | issue44375 messages |
2021-06-10 11:52:24 | Gnanesh | create | |
|