SIGN IN SIGN UP

urllib: Simplify splithost by calling into urlparse. (#1849)

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``.
P
postmasters committed
90e01e50ef8a9e6c91f30d965563c378a4ad26de
Parent: 5cc7ac2
Committed by Victor Stinner <victor.stinner@gmail.com> on 6/20/2017, 1:02:44 PM