diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-07-12 14:51:46 +0200 |
---|---|---|
committer | larryhastings <larry@hastings.org> | 2017-07-12 14:51:46 +0200 |
commit | cc54c1c0d2d05fe7404ba64c53df4b1352ed2262 (patch) | |
tree | df73846d6ca927314bdb24125bb902dbcfc942eb /Lib/test/test_weakref.py | |
parent | 71572bbe82aa0836c036d44d41c8269ba6a321be (diff) | |
download | cpython-cc54c1c0d2d05fe7404ba64c53df4b1352ed2262.tar.gz cpython-cc54c1c0d2d05fe7404ba64c53df4b1352ed2262.zip |
bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2291)
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)
Diffstat (limited to 'Lib/test/test_weakref.py')
0 files changed, 0 insertions, 0 deletions