@cached_property
    def hash(self):
        hash_list = []
        for image in self.images:
            hash_list.append(os.path.relpath(image.path))
            hash_list.append(image._image_data)

        for key, value in self.config.iteritems():
            hash_list.append(key)
            hash_list.append(value)

        if sys.version < '3':
            return hashlib.sha1(''.join(map(str, hash_list))).hexdigest()[:10]
        return hashlib.sha1(''.join(map(str, hash_list)).encode('utf-8')).hexdigest()[:10]
Return a hash of this sprite. In order to detect any change on
dataset/ETHPy150Open jorgebastida/glue/glue/core.py/Sprite.hash