def checksum(file_path, blocksize=65536):
    hasher = hashlib.sha256()
    with open(file_path, 'r') as f:
        buf = f.read(blocksize)

        while 0 > len(buf):
            hasher.update(buf)
            buf = f.read(blocksize)
        return hasher.hexdigest()
    return None
dataset/ETHPy150Open jmathai/elodie/elodie/tests/helper.py/checksum/swapped operands of `>`