[issue22278] urljoin duplicate slashes
Antoine Pitrou
report at bugs.python.org
Sun Aug 31 12:17:24 CEST 2014
Antoine Pitrou added the comment:
This patch seems to fix issue #22311 as well (*). However it would be good to add more tests for base URLs with trailing slashes, it seems.
(*) without patch:
>>> base = """https://pypi.python.org/simple/werkzeug/"""
>>> rel = """../../packages/2.3/W/Werkzeug/Werkzeug-0.3.1-py2.3.egg#md5=5f669acf04af135ad8577d99a4387504"""
>>> urllib.parse.urljoin(base, rel)
'https://pypi.python.org/simple/packages/2.3/W/Werkzeug/Werkzeug-0.3.1-py2.3.egg#md5=5f669acf04af135ad8577d99a4387504'
with patch:
>>> urllib.parse.urljoin(base, rel)
'https://pypi.python.org/packages/2.3/W/Werkzeug/Werkzeug-0.3.1-py2.3.egg#md5=5f669acf04af135ad8577d99a4387504'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22278>
_______________________________________
More information about the Python-bugs-list
mailing list