f9c4d6b500888c059dcf4547a3442e6a7a582b27,imagekit/models.py,ImageSpecFile,_create,#ImageSpecFile#,136

Before Change


        if self._imgfield:
            // TODO: Should we error here or something if the image doesn"t exist?
            if self._exists():
                return
            // process the original image file
            try:
                fp = self._imgfield.storage.open(self._imgfield.name)
            except IOError:

After Change


        img = None
        if lazy:
            img = self._img
            if not img and self.storage.exists(self.name):
                img = Image.open(self.file)
        if not img and self.source_file:
            // process the original image file
            try:
                fp = self.source_file.storage.open(self.source_file.name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: matthewwithanm/django-imagekit
Commit Name: f9c4d6b500888c059dcf4547a3442e6a7a582b27
Time: 2011-09-23
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageSpecFile
Method Name: _create


Project Name: automl/ParameterImportance
Commit Name: 58663157751ed44a84b0e208cc0c7719d4472540
Time: 2018-01-11
Author: biedenka@informatik.uni-freiburg.de
File Name: pimp/pimp.py
Class Name: PIMP
Method Name: __init__


Project Name: matthewwithanm/django-imagekit
Commit Name: f9c4d6b500888c059dcf4547a3442e6a7a582b27
Time: 2011-09-23
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageSpecFile
Method Name: file