Staging
v0.5.0
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
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.bzrignore -rw-r--r-- 584 bytes
.gitignore -rw-r--r-- 1.1 KB
.hgeol -rw-r--r-- 996 bytes
.hgignore -rw-r--r-- 1.3 KB
.hgtags -rw-r--r-- 7.2 KB
.hgtouch -rw-r--r-- 1.2 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 54.0 KB
README -rw-r--r-- 6.6 KB
aclocal.m4 -rw-r--r-- 8.3 KB
config.guess -rwxr-xr-x 41.9 KB
config.sub -rwxr-xr-x 34.9 KB
configure -rwxr-xr-x 440.4 KB
configure.ac -rw-r--r-- 138.8 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 40.2 KB
setup.py -rw-r--r-- 95.2 KB

README

back to top