Staging
v0.5.1
https://github.com/python/cpython
Revision 052f9d6860c48c5abcff8e16212e77cf4249d66c authored by Victor Stinner on 26 July 2017, 02:43:52 UTC, committed by Ned Deily on 26 July 2017, 02:43:52 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)
(cherry picked from commit cc54c1c0d2d05fe7404ba64c53df4b1352ed2262)
1 parent b5f20ea
History
Tip revision: 052f9d6860c48c5abcff8e16212e77cf4249d66c authored by Victor Stinner on 26 July 2017, 02:43:52 UTC
[3.3] bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2292)
Tip revision: 052f9d6
File Mode Size
Python.asdl -rw-r--r-- 4.5 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 10.9 KB
asdl_c.py -rwxr-xr-x 40.8 KB
bitset.c -rw-r--r-- 1.0 KB
firstsets.c -rw-r--r-- 2.8 KB
grammar.c -rw-r--r-- 6.7 KB
grammar1.c -rw-r--r-- 1.3 KB
listnode.c -rw-r--r-- 1.2 KB
metagrammar.c -rw-r--r-- 2.4 KB
myreadline.c -rw-r--r-- 6.0 KB
node.c -rw-r--r-- 4.4 KB
parser.c -rw-r--r-- 11.7 KB
parser.h -rw-r--r-- 1.0 KB
parsetok.c -rw-r--r-- 9.2 KB
parsetok_pgen.c -rw-r--r-- 35 bytes
pgen.c -rw-r--r-- 17.5 KB
pgenmain.c -rw-r--r-- 3.8 KB
printgrammar.c -rw-r--r-- 2.9 KB
spark.py -rw-r--r-- 26.5 KB
tokenizer.c -rw-r--r-- 49.3 KB
tokenizer.h -rw-r--r-- 3.3 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top