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

Remove docker.credentials.utils.find_executable #3028

Merged
merged 1 commit into from Aug 2, 2022

Conversation

n1ngu
Copy link
Contributor

@n1ngu n1ngu commented Jul 31, 2022

While removing any usage of the deprecated distutils package,
("The distutils package is deprecated and slated for removal in Python 3.12.")
this internal utility can be removed straightaway because the
shutil.which replacement for distutils.spawn.find_executable already honors the PATHEXT environment
variable in windows systems.

See https://docs.python.org/3/library/shutil.html#shutil.which

While removing any usage of the deprecated `distutils` package,
("The distutils package is deprecated and slated for removal in Python 3.12.")
this internal utility can be removed straightaway because the
`shutil.which` replacement for `distutils.spawn.find_executable`
already honors the `PATHEXT` environment variable in windows systems.

See https://docs.python.org/3/library/shutil.html#shutil.which

Signed-off-by: Daniel Möller <n1ngu@riseup.net>
Copy link
Member

@milas milas left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@milas milas merged commit 4278981 into docker:main Aug 2, 2022
@n1ngu n1ngu deleted the fix/remove-credentials-utils branch August 2, 2022 16:39
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

2 participants