[Python-checkins] [python/cpython] 90e01e: urllib: Simplify splithost by calling into urlpars...
GitHub
noreply at github.com
Tue Jun 20 09:02:46 EDT 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: 90e01e50ef8a9e6c91f30d965563c378a4ad26de
https://github.com/python/cpython/commit/90e01e50ef8a9e6c91f30d965563c378a4ad26de
Author: postmasters <namnguyen at google.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:
-----------
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``.
More information about the Python-checkins
mailing list