[Python-checkins] [python/cpython] 536c1f: bpo-30500: urllib: Simplify splithost by calling i...
GitHub
noreply at github.com
Tue Jun 20 09:37:25 EDT 2017
Branch: refs/heads/3.6
Home: https://github.com/python/cpython
Commit: 536c1f1246f4faa302f9f5613fc3444e7ae09b4a
https://github.com/python/cpython/commit/536c1f1246f4faa302f9f5613fc3444e7ae09b4a
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-06-20 (Tue, 20 Jun 2017)
Changed paths:
M Lib/test/test_urlparse.py
M Lib/urllib/parse.py
M Misc/ACKS
M Misc/NEWS
Log Message:
-----------
bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289)
The current regex based splitting produces a wrong result. For example::
http://abc#@def
Web browsers parse that URL as ``http://abc/#@def``, that is, the host
is ``abc``, the path is ``/``, and the fragment is ``#@def``.
(cherry picked from commit 90e01e50ef8a9e6c91f30d965563c378a4ad26de)
More information about the Python-checkins
mailing list