Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-127001: Fix PATHEXT issues in shutil.which() on Windows#127035
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
8 commits Select commitHold shift + click to select a range
b2ec0f6 gh-127001: Fix conflict with extensionless files in shutil.which() on…
serhiy-storchaka851c4c2 Rewrite tests and support . in PATHEXT.
serhiy-storchaka2258182 Update comment.
serhiy-storchakae1b862b Add a NEWS entry.
serhiy-storchakab72facb Test full match with multidot extension
serhiy-storchakae494730 Polishing.
serhiy-storchakadb4ab95 Remove an outdated bugfix versionchanged.
serhiy-storchakae49c75f Support PATHEXT extension that ends with a dot.
serhiy-storchakaFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Add a NEWS entry.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commite1b862bf8e9ae62224d33e911c6e79963cc68e75
There are no files selected for viewing
3 changes: 3 additions & 0 deletionsMisc/NEWS.d/next/Library/2024-11-22-10-42-34.gh-issue-127035.UnbDlr.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,3 @@ | ||
| Fix :mod:`shutil.which` on Windows. Now it looks at direct match if and only | ||
| if the command ends with a PATHEXT extension or X_OK is not in mode. Support | ||
| extensionless files if "." is in PATHEXT. |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.