[2.7] bpo-30500: urllib: Simplify splithost by calling into urlparse. by postmasters · Pull Request #1850 · python/cpython
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``.
Mariatta
changed the title
urllib: Simplify splithost by calling into urlparse.
[2.7] urllib: Simplify splithost by calling into urlparse.
vstinner
changed the title
[2.7] urllib: Simplify splithost by calling into urlparse.
[2.7] bpo-30500: urllib: Simplify splithost by calling into urlparse.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters