Message322737
> 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. |
|
Date |
User |
Action |
Args |
2018-07-31 07:11:19 | chris.jerdonek | set | recipients:
+ chris.jerdonek, martin.panter, xtreak |
2018-07-31 07:11:19 | chris.jerdonek | set | messageid: <1533021079.76.0.56676864532.issue34276@psf.upfronthosting.co.za> |
2018-07-31 07:11:19 | chris.jerdonek | link | issue34276 messages |
2018-07-31 07:11:19 | chris.jerdonek | create | |
|