Closed Minnozz closed 6 months ago
Rewrite places where files (or other resources) are opened but not closed to "with" blocks, which automatically call close() at the end of the scope.
Also simplify some tests where images need to be saved to a model field: an opened file can be passed directly to FileField.save().
Rewrite places where files (or other resources) are opened but not closed to "with" blocks, which automatically call close() at the end of the scope.
Also simplify some tests where images need to be saved to a model field: an opened file can be passed directly to FileField.save().