

def hash(self, value):
    '\n        Generate a hash of the given tuple.\n\n        This is for use in a cache key.\n        '
    if isinstance(value, tuple):
        value = tuple((to_bytestring(v) for v in value))
    return hashlib.md5(six.b(':').join(value)).hexdigest()

dataset/ETHPy150Open codeinthehole/django-cacheback/cacheback/base.py Job.hash/original