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 martin.panter
Recipients julian.reschke@gmx.de, martin.panter, orsenthil
Date 2015-11-28.23:06:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448752006.42.0.0492370840041.issue23150@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-11-28 23:06:46martin.pantersetrecipients: + martin.panter, orsenthil, julian.reschke@gmx.de
2015-11-28 23:06:46martin.pantersetmessageid: <1448752006.42.0.0492370840041.issue23150@psf.upfronthosting.co.za>
2015-11-28 23:06:46martin.panterlinkissue23150 messages
2015-11-28 23:06:46martin.pantercreate