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 Ilya Konstantinov
Recipients Ilya Konstantinov, christian.heimes, martin.panter, nsonaniya2010, orsenthil, steven.daprano, xtreak
Date 2019-08-18.06:57:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566111468.66.0.440908406399.issue35748@roundup.psfhosted.org>
In-reply-to
Content
From RFC-1738:

hostname       = *[ domainlabel "." ] toplabel
domainlabel    = alphadigit | alphadigit *[ alphadigit | "-" ] alphadigit
toplabel       = alpha | alpha *[ alphadigit | "-" ] alphadigit
alphadigit     = alpha | digit

However:

py> urlparse('https://foo\\bar/baz')
ParseResult(scheme='https', netloc='foo\\bar', path='/baz', params='', query='', fragment='')

The hostname's BNF doesn't allow for a backslash ('\\') character, so I'd expect urlparse to raise a ValueError for this "URL".
History
Date User Action Args
2019-08-18 06:57:48Ilya Konstantinovsetrecipients: + Ilya Konstantinov, orsenthil, christian.heimes, steven.daprano, martin.panter, xtreak, nsonaniya2010
2019-08-18 06:57:48Ilya Konstantinovsetmessageid: <1566111468.66.0.440908406399.issue35748@roundup.psfhosted.org>
2019-08-18 06:57:48Ilya Konstantinovlinkissue35748 messages
2019-08-18 06:57:48Ilya Konstantinovcreate