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

Replace deprecated strtobool function #3760

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

koopmant
Copy link
Contributor

The distutils module has been deprecated in Python 3.10 and removed in Python 3.12, see docs distutils.

The migration advice:

For these functions, and any others not mentioned here, you will need to reimplement the functionality yourself.
distutils.util.strtobool

Copied the strtobool function from 3.11 and adjusted it to return booleans, like our function did.

@koopmant koopmant self-assigned this Dec 18, 2024
@koopmant koopmant requested a review from jmsmkn as a code owner December 18, 2024 14:56
jmsmkn
jmsmkn previously approved these changes Dec 18, 2024
@jmsmkn
Copy link
Member

jmsmkn commented Dec 18, 2024

Maybe good to add some (parameterised) tests?

@jmsmkn jmsmkn merged commit 9982797 into main Dec 19, 2024
8 checks passed
@jmsmkn jmsmkn deleted the replace-deprecated-strtobool branch December 19, 2024 08:13
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.

2 participants