#14749 closed (fixed)
add __enter__ and __exit__ to django.core.files.File
Reported by: | Florian Apolloner | Owned by: | nobody |
---|---|---|---|
Component: | File uploads/storage | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The summary pretty much says it; I'll attach a patch.
Attachments (1)
Change History (3)
by , 14 years ago
Attachment: | enter_exit_for_file.diff added |
---|
comment:1 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [14671]) Fixed #14749 -- added support for using Django's file object as context managers. Thanks to Florian Apolloner for the patch.