Message255556
Marking as Python 3 since you mentioned urllib.parse, rather than just urllib. However you need to be more specific. We already have a urllib.parse.urlsplit() function which seems to do what you want:
>>> urllib.parse.urlsplit("http://example.com/;").path
'/;'
I see that the “params” bit can be dropped by urljoin(). My proposal in Issue 22852 could probably be adapted to help with that. |
|
Date |
User |
Action |
Args |
2015-11-28 23:06:46 | martin.panter | set | recipients:
+ martin.panter, orsenthil, julian.reschke@gmx.de |
2015-11-28 23:06:46 | martin.panter | set | messageid: <1448752006.42.0.0492370840041.issue23150@psf.upfronthosting.co.za> |
2015-11-28 23:06:46 | martin.panter | link | issue23150 messages |
2015-11-28 23:06:46 | martin.panter | create | |
|