]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-661) (#16839)
authorSenthil Kumaran <skumaran@gatech.edu>
Fri, 18 Oct 2019 15:23:14 +0000 (08:23 -0700)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2019 15:23:14 +0000 (08:23 -0700)
commit0f3187c1ce3b3ace60f6c1691dfa3d4e744f0384
treee034c70610185281f4ac3658bdb3d1e41b07bf71
parentde812682a674cdf2bac0f9547200f107069781ad
[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-661) (#16839)

* bpo-27657: Fix urlparse() with numeric paths

Revert parsing decision from bpo-754016 in favor of the documented
consensus in bpo-16932 of how to treat strings without a // to
designate the netloc.

* bpo-22891: Remove urlsplit() optimization for 'http' prefixed inputs.
(cherry picked from commit 5a88d50ff013a64fbdb25b877c87644a9034c969)

Co-authored-by: Tim Graham <timograham@gmail.com>
Lib/test/test_urlparse.py
Lib/urllib/parse.py
Misc/NEWS.d/next/Library/2017-12-26-14-32-23.bpo-27657.6BhyVK.rst [new file with mode: 0644]