

def sha1_of_file(filename):
    h = hashlib.sha1()
    with open(f, 'rb') as f:
        h.update(f.read())
    return h.hexdigest()

dataset/ETHPy150Open jakevdp/cython_template/tools/cythonize.py sha1_of_file/VarMisuse@21/25 `filename`->`f`