c89b18aa95083f3b867e575380a908ef9bbb358c,imagekit/cachefiles/__init__.py,ImageCacheFile,_require_file,#ImageCacheFile#,58

Before Change



    def _require_file(self):
        if not getattr(self, "_file", None):
            before_access.send(sender=self, file=self)

    def generate(self, force=False):
        
        Generate the file. If ``force`` is ``True``, the file will be generated

After Change



    def _require_file(self):
        if not getattr(self, "_file", None):
            content_required.send(sender=self, file=self)
            self._file = self.storage.open(self.name, "rb")

    // The ``path`` and ``url`` properties are overridden so as to not call
    // ``_require_file``, which is only meant to be called when the file object
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: matthewwithanm/django-imagekit
Commit Name: c89b18aa95083f3b867e575380a908ef9bbb358c
Time: 2013-05-10
Author: m@tthewwithanm.com
File Name: imagekit/cachefiles/__init__.py
Class Name: ImageCacheFile
Method Name: _require_file


Project Name: matthewwithanm/django-imagekit
Commit Name: 906fbbd4639b4706e96188f646fd51bb191a51df
Time: 2013-05-09
Author: m@tthewwithanm.com
File Name: imagekit/cachefiles/__init__.py
Class Name: ImageCacheFile
Method Name: _require_file


Project Name: janfreyberg/superintendent
Commit Name: cb266bbe1ce215ec56cc54ee009ea3a2a055b6d8
Time: 2018-05-31
Author: janfreyberg@users.noreply.github.com
File Name: superintendent/base.py
Class Name: Labeller
Method Name: _apply_annotation