Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#14749 closed (fixed)

add __enter__ and __exit__ to django.core.files.File

Reported by: apollo13 Owned by: nobody
Component: File uploads/storage Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

The summary pretty much says it; I'll attach a patch.

Attachments (1)

enter_exit_for_file.diff (1.3 KB) - added by apollo13 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by apollo13

comment:1 Changed 3 years ago by Alex

  • Resolution set to fixed
  • Status changed from new to closed

(In [14671]) Fixed #14749 -- added support for using Django's file object as context managers. Thanks to Florian Apolloner for the patch.

comment:2 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.