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 ColonelThirtyTwo
Recipients ColonelThirtyTwo
Date 2014-10-09.16:00:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412870433.46.0.862767853703.issue22586@psf.upfronthosting.co.za>
In-reply-to
Content
Passing False to the allow_fragments argument to urljoin doesn't remove fragments.

Is this a bug, or am I misunderstanding the allow_fragments parameter? It's not perfectly clear what "fragment identifiers are not allowed" means (strips them out? throws an error?)

I'm running this on XUbuntu 14.04.01.

$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from urllib.parse import urljoin
>>> urljoin("http://localhost:8000/foo.html", "bar.html#baz", allow_fragments=False)
'http://localhost:8000/bar.html#baz'
History
Date User Action Args
2014-10-09 16:00:33ColonelThirtyTwosetrecipients: + ColonelThirtyTwo
2014-10-09 16:00:33ColonelThirtyTwosetmessageid: <1412870433.46.0.862767853703.issue22586@psf.upfronthosting.co.za>
2014-10-09 16:00:33ColonelThirtyTwolinkissue22586 messages
2014-10-09 16:00:33ColonelThirtyTwocreate