def check_hash(rawfile, filename):
    """
    Returns True if hash does not match the previous one.
    """
    try:
        with open(file_path + '/hash_dict.pickle', 'rb') as f:
            hash_dict = cPickle.load(f)
    except __HOLE__:
        hash_dict = {}
    try:
        checkhash = hash_dict[filename]
    except:
        checkhash = None

    filehash = get_hash(rawfile)
    if filehash == checkhash:
        return False, None
    return True, filehash
dataset/ETHPy150Open statsmodels/statsmodels/tools/hash_funcs.py/check_hash