Message228877
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' |
|
Date |
User |
Action |
Args |
2014-10-09 16:00:33 | ColonelThirtyTwo | set | recipients:
+ ColonelThirtyTwo |
2014-10-09 16:00:33 | ColonelThirtyTwo | set | messageid: <1412870433.46.0.862767853703.issue22586@psf.upfronthosting.co.za> |
2014-10-09 16:00:33 | ColonelThirtyTwo | link | issue22586 messages |
2014-10-09 16:00:33 | ColonelThirtyTwo | create | |
|