summaryrefslogtreecommitdiffstats
path: root/Python/pythonmain.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-07-26 02:43:52 (GMT)
committerNed Deily <nad@python.org>2017-07-26 02:43:52 (GMT)
commit052f9d6860c48c5abcff8e16212e77cf4249d66c (patch)
treede642ba7a941e21e085add9245a9e14c509dae40 /Python/pythonmain.c
parentb5f20ea91ec4d9dc7e1c31629903888c651bd02c (diff)
downloadcpython-052f9d6860c48c5abcff8e16212e77cf4249d66c.zip
cpython-052f9d6860c48c5abcff8e16212e77cf4249d66c.tar.gz
cpython-052f9d6860c48c5abcff8e16212e77cf4249d66c.tar.bz2
[3.3] bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2292)
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) (cherry picked from commit cc54c1c0d2d05fe7404ba64c53df4b1352ed2262)
Diffstat (limited to 'Python/pythonmain.c')
0 files changed, 0 insertions, 0 deletions