Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 16, 2020
Merged

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

merged 1 commit into from
Feb 16, 2020

Conversation

orsenthil
Copy link
Member

@orsenthil orsenthil commented Feb 16, 2020

[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 ambv February 16, 2020 18:17
@orsenthil orsenthil 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
Copy link
Member

@ned-deily ned-deily left a comment

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
Member Author

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

@codecov
Copy link

codecov bot commented Feb 16, 2020

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 Files Coverage Δ
Lib/distutils/tests/test_bdist_rpm.py 30.00% <0.00%> (-65.00%) ⬇️
Lib/distutils/command/bdist_rpm.py 7.63% <0.00%> (-56.88%) ⬇️
Lib/test/test_urllib2net.py 76.68% <0.00%> (-13.99%) ⬇️
Lib/test/test_smtpnet.py 78.57% <0.00%> (-7.15%) ⬇️
Lib/ftplib.py 63.72% <0.00%> (-6.08%) ⬇️
Lib/test/test_ftplib.py 87.08% <0.00%> (-4.74%) ⬇️
Tools/scripts/db2pickle.py 17.82% <0.00%> (-3.97%) ⬇️
Lib/test/test_socket.py 72.14% <0.00%> (-3.89%) ⬇️
Tools/scripts/pickle2db.py 16.98% <0.00%> (-3.78%) ⬇️
Lib/test/test_asyncio/test_base_events.py 91.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 free to 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.

None yet

4 participants