Skip to content

remove get_bool_env_var #5222

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 2 commits into from
Jan 19, 2022
Merged

remove get_bool_env_var #5222

merged 2 commits into from
Jan 19, 2022

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Jan 19, 2022

Addresses #5184 (comment). After some more offline discussions, @NicolasHug and I found two strong reasons to remove it:

  1. It uses strtobool from distutils which is deprecated and will be removed in Python 3.12
  2. strtobool parses typical English true- and false-ish values. Thus, it actually should be named get_english_bool_env_var, which defeats the purpose I added it in the first place.

cc @pmeier

@facebook-github-bot
Copy link

facebook-github-bot commented Jan 19, 2022

💊 CI failures summary and remediations

As of commit 75ae574 (more details on the Dr. CI page):


None of the CI failures appear to be your fault 💚



🚧 1 ongoing upstream failure:

These were probably caused by upstream breakages that are not fixed yet.


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks a lot for keeping an open mind on this @pmeier .

LGTM!

@pmeier pmeier merged commit afdf126 into pytorch:main Jan 19, 2022
@pmeier pmeier deleted the remove-get-bool-env-var branch January 19, 2022 19:50
facebook-github-bot pushed a commit that referenced this pull request Jan 26, 2022
Reviewed By: jdsgomes, prabhat00155

Differential Revision: D33739382

fbshipit-source-id: 1b06e935aa6ccca183df883232e2957be84f7d29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants