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
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 6.0 KB
README.txt -rw-r--r-- 3.9 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.0 KB
conf.py -rw-r--r-- 5.6 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 40.9 KB
license.rst -rw-r--r-- 45.6 KB
make.bat -rw-r--r-- 3.8 KB

README.txt

back to top