-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Make cgi.FieldStorage a context manager #64488
Comments
It has a file attribute which contains a file, so making it so it can be closed faster than cgi.FieldStorage.__del__ would be good. |
Here's a patch with a test and documentation update. |
Added comments on Rietveld. |
Ping. |
Here's an updated patch. Thank you Serhiy. |
LGTM. |
Thanks for the review, Serhiy! |
New changeset 367f5e98ffbb by Berker Peksag in branch 'default': |
New changeset 34930a6faf0d by Serhiy Storchaka in branch 'default': |
New changeset 80501740ab84 by Serhiy Storchaka in branch '3.5': New changeset 6f4dd9bc1f20 by Serhiy Storchaka in branch 'default': |
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: