]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-27657: Fix urlparse() with numeric paths (GH-661)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 18 Oct 2019 13:24:28 +0000 (06:24 -0700)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2019 13:24:28 +0000 (06:24 -0700)
commit82b5f6b16e051f8a2ac6e87ba86b082fa1c4a77f
tree1c555095e70b4c306ce061bd9534b7860f7af098
parent1bceb0e58905fd6d241d7d566e19ca78558973dd
bpo-27657: Fix urlparse() with numeric paths (GH-661)

* 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]