-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
[3.8] bpo-27657: Revert "Fix urlparse() with numeric paths (GH-661) #18525
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
Conversation
There was a problem hiding this 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.
Thanks @ned-deily. I have addressed your comment in 3.8 too. |
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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
needs to be preserved in patch releases as number of users rely upon it.
https://bugs.python.org/issue27657