Author maggyero
Recipients Jeremy.Hylton, maggyero, nicktimko, orsenthil
Date 2019-09-02.22:43:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
@nicktimko Thanks for the historical track.

Here is a patch that solves this issue by updating the `urlsplit` and `urlunsplit` functions of the `urllib.parse` module to keep the '?' and '#' delimiters in URIs if present, even if their associated component is empty, as required by RFC 3986:

That way we get the correct behavior:

    >>> import urllib.parse
    >>> urllib.parse.urlunsplit(urllib.parse.urlsplit(""))
    >>> urllib.parse.urlunsplit(urllib.parse.urlsplit(""))

Any feedback welcome.
Date User Action Args
2019-09-02 22:43:25maggyerosetrecipients: + maggyero, orsenthil, Jeremy.Hylton, nicktimko
2019-09-02 22:43:24maggyerosetmessageid: <>
2019-09-02 22:43:24maggyerolinkissue37969 messages
2019-09-02 22:43:24maggyerocreate