Staging
v0.5.1
https://github.com/python/cpython
Revision cc54c1c0d2d05fe7404ba64c53df4b1352ed2262 authored by Victor Stinner on 12 July 2017, 12:51:46 UTC, committed by larryhastings on 12 July 2017, 12:51:46 UTC
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)
1 parent 71572bb
History
Tip revision: cc54c1c0d2d05fe7404ba64c53df4b1352ed2262 authored by Victor Stinner on 12 July 2017, 12:51:46 UTC
bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2291)
Tip revision: cc54c1c
File Mode Size
README -rw-r--r-- 1014 bytes
beer.py -rwxr-xr-x 566 bytes
eiffel.py -rwxr-xr-x 3.8 KB
hanoi.py -rwxr-xr-x 4.5 KB
life.py -rwxr-xr-x 8.8 KB
markov.py -rwxr-xr-x 3.6 KB
mcast.py -rwxr-xr-x 2.2 KB
queens.py -rwxr-xr-x 2.2 KB
redemo.py -rwxr-xr-x 5.7 KB
rpython.py -rwxr-xr-x 778 bytes
rpythond.py -rwxr-xr-x 1.3 KB
sortvisu.py -rwxr-xr-x 19.5 KB
ss1.py -rwxr-xr-x 24.9 KB
vector.py -rwxr-xr-x 1.4 KB

README

back to top