Skip to content

[3.8] bpo-27657: Revert "Fix urlparse() with numeric paths (GH-661) - #18525

Merged
orsenthil merged 1 commit into
python:3.8from
orsenthil:issue27657-3.8-revert
Feb 16, 2020
Merged

[3.8] bpo-27657: Revert "Fix urlparse() with numeric paths (GH-661) #18525
orsenthil merged 1 commit into
python:3.8from
orsenthil:issue27657-3.8-revert

Conversation

@orsenthil

@orsenthilorsenthil commented Feb 16, 2020

Copy link
Copy Markdown
Member
[bpo-27657](https://bugs.python.org/issue27657) - Revert Fix urlparse() with numeric paths (GH-661) (#16839) for 3.8.2

This reverts commit 0f3187c.

The change broke the backward 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.

https://bugs.python.org/issue27657

@orsenthil
orsenthil requested a review from ambvFebruary 16, 2020 18:17
@orsenthilorsenthil changed the title Revert "[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-661) [3.8] bpo-27657: Revert "Fix urlparse() with numeric paths (GH-661) Feb 16, 2020

@ned-deilyned-deily left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment on the 3.7 version (#18526) regarding the wording of the NEWS entry.

…16839)"
This reverts commit 0f3187c.
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.
@orsenthil

Copy link
Copy Markdown
MemberAuthor

Thanks @ned-deily. I have addressed your comment in 3.8 too.

@codecov

codecovBot commented Feb 16, 2020

Copy link
Copy Markdown

Codecov Report

Merging #18525 into 3.8 will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@## 3.8 #18525 +/- ##
==========================================
+ Coverage 82.07% 82.09% +0.02% 
==========================================
Files 1919 1918 -1 Lines 582169 576853 -5316 Branches 43731 43737 +6 ==========================================
- Hits 477834 473591 -4243 + Misses 94759 93689 -1070 + Partials 9576 9573 -3 
Impacted FilesCoverage Δ
Lib/distutils/tests/test_bdist_rpm.py30.00% <0.00%> (-65.00%)⬇️
Lib/distutils/command/bdist_rpm.py7.63% <0.00%> (-56.88%)⬇️
Lib/test/test_urllib2net.py76.68% <0.00%> (-13.99%)⬇️
Lib/test/test_smtpnet.py78.57% <0.00%> (-7.15%)⬇️
Lib/ftplib.py63.72% <0.00%> (-6.08%)⬇️
Lib/test/test_ftplib.py87.08% <0.00%> (-4.74%)⬇️
Tools/scripts/db2pickle.py17.82% <0.00%> (-3.97%)⬇️
Lib/test/test_socket.py72.14% <0.00%> (-3.89%)⬇️
Tools/scripts/pickle2db.py16.98% <0.00%> (-3.78%)⬇️
Lib/test/test_asyncio/test_base_events.py91.82% <0.00%> (-3.30%)⬇️
... and 327 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d860dd...f5ebee3. Read the comment docs.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@orsenthil@ned-deily@the-knights-who-say-ni@bedevere-bot