diff options
author | postmasters <namnguyen@google.com> | 2017-06-20 06:02:44 -0700 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-06-20 15:02:44 +0200 |
commit | 90e01e50ef8a9e6c91f30d965563c378a4ad26de (patch) | |
tree | e467f98aa737fb5c517df080f25d7734d81a5d55 /Objects/codeobject.c | |
parent | 5cc7ac24da10568d2a910a91a24183b904118cf8 (diff) | |
download | cpython-git-90e01e50ef8a9e6c91f30d965563c378a4ad26de.tar.gz |
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``.
Diffstat (limited to 'Objects/codeobject.c')
0 files changed, 0 insertions, 0 deletions