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
Avoid ResourceWarnings from platform._dist_try_harder #72090
Comments
Use opened files as context managers. |
Thanks for the report and patch Ville. CPython development now uses GitHub PR instead of patches. It seems usages of this function was removed in 8b94b41 during removal of platform.linux_distribution. This essentially seems to be unused code on master which I hope can be removed. So this patch is effective only for 3.7 and 3.6. Would you like to make a PR to take this forward? No usages on master except definition. ➜ cpython git:(master) rg _dist_try_harder Thanks |
I guess this can be closed as out of date since the function was removed with #10787. cc: Victor |
Python 3.6 and 3.7 are still supported. The patch LGTM, I converted it to a PR. |
Thanks Ville Skyttä for your bugfix! I applied it in 3.6 and 3.7 branches. FYI as Karthikeyan Singaravelan wrote, the function is gone (I removed it) from the master branch ;-) |
Ah sorry I forgot the previous versions that had this code. Thanks for the catch and PR victor :) |
No problem, thanks for "cc-ing" me ;-) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: