Chris Jerdonek <chris.jerdo...@gmail.com> added the comment:
> The RFC treats empty authority and no authority as different cases. I'm not well-versed on this. But I guess this means urllib.parse doesn't support this distinction. For example: >>> urllib.parse.urlsplit('file:/foo') SplitResult(scheme='file', netloc='', path='/foo', query='', fragment='') >>> urllib.parse.urlsplit('file:///foo') SplitResult(scheme='file', netloc='', path='/foo', query='', fragment='') >>> urllib.parse.urlsplit('file:/foo') == \ urllib.parse.urlsplit('file:///foo') True Both have authority / netloc equal to the empty string, even though in the first example the authority isn't present per your comment. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34276> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com