-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
GH-123599: url2pathname()
: handle authority section in file URL
#126844
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
50231c5
GH-126838: `url2pathname()`: handle non-empty authority section on POSIX
barneygale 9032105
Fix test
barneygale b91afca
Undo unnecessary change
barneygale 4b320b8
Fix Windows tests
barneygale 0cc3a67
More test fixes
barneygale 96fdb01
Merge branch 'main' into gh-126838
barneygale 52010ca
Merge branch 'main' into gh-126838
barneygale f64ca0d
Merge branch 'main' into gh-126838
barneygale ab800ab
Updatez
barneygale 40d346a
Fix tests #1
barneygale 69807b4
Merge branch 'main' into gh-126838
barneygale 79f5d05
Restore previous Windows behaviour
barneygale bb69e49
Fix WASI, docs
barneygale 7adddbf
wasi yousa problem?
barneygale b4fa510
Merge branch 'main' into gh-126838
barneygale b5e5460
Update whatsnew
barneygale 67fccd5
Apply suggestions from code review
barneygale 89ddf7f
Address some review feedback
barneygale d327f34
Apply suggestions from code review
barneygale 313a68f
Swap .. versionchanged:: order
barneygale e1f6d10
Add test cases involving ports
barneygale c5f5e24
Add test methods for common posix/windows results
barneygale 25521c1
Windows test fixes
barneygale fa77456
Restore FileHandler.names and get_names()
barneygale 3a50641
Docs improvements
barneygale eecff9b
Merge branch 'main' into gh-126838
barneygale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
Misc/NEWS.d/next/Library/2024-11-14-21-17-48.gh-issue-126838.Yr5vKF.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Fix issue where :func:`urllib.request.url2pathname` mishandled file URLs with | ||
authorities. If an authority is present and resolves to ``localhost``, it is | ||
now discarded. If an authority is present but *doesn't* resolve to | ||
``localhost``, then on Windows a UNC path is returned (as before), and on | ||
other platforms a :exc:`urllib.error.URLError` is now raised. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.