-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Use with
statement in dbm.dumb
#65928
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
Comments
Hello. Here's a short patch for dbm.dumb, which uses in various places the |
Serhiy, after reviewing this, consider backporting it. The original code doesn't have a try/finally around the close() call and that could be considered a bug. |
Ah, month ago I wrote large patch which use 'with' in various places in stdlib for opening and closing files. But then I dropped it because afraid that it can be considered as code churn. |
New changeset fdbcb11e0323 by Serhiy Storchaka in branch '3.4': New changeset e41b4e8c0c1d by Serhiy Storchaka in branch 'default': New changeset 893e79196fb3 by Serhiy Storchaka in branch '2.7': |
Thanks Claudiu. Committed with yet one "with". |
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: