]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Revert "[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-16839)" (GH-18525)
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 16 Feb 2020 21:47:21 +0000 (13:47 -0800)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2020 21:47:21 +0000 (13:47 -0800)
commitea316fd21527dec53e704a5b04833ac462ce3863
tree7d19f73ca966afb54e6ef7e64b241e7f0849def1
parent0d860dd43c72dc7046a5d18fc72d495cadd4a2df
Revert "[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-16839)" (GH-18525)

This reverts commit 0f3187c1ce3b3ace60f6c1691dfa3d4e744f0384.

The change broke the backwards compatibility of parsing behavior in a
patch release of Python (3.8.1). A decision was taken to revert this
patch in 3.8.2.

In https://bugs.python.org/issue27657 it was decided that the previous
behavior like

>>> urlparse('localhost:8080')
ParseResult(scheme='', netloc='', path='localhost:8080', params='', query='', fragment='')

>>> urlparse('undefined:8080')
ParseResult(scheme='', netloc='', path='undefined:8080', params='', query='', fragment='')

needs to be preserved in patch releases as number of users rely upon it.

Explicitly mention the releases involved with the revert in NEWS.
Adopt the wording suggested by @ned-deily.
Lib/test/test_urlparse.py
Lib/urllib/parse.py
Misc/NEWS.d/next/Library/2020-02-16-07-08-54.bpo-27657.9atgcz.rst [new file with mode: 0644]