def _valid_file(fname, verbose=False):
    if any([(l in fname) for l in _WHITE_LIST]):
        if verbose:
            print((('skip ' + fname) + ', it matches the white list'))
        return False
    (_, ext) = os.path.splitext(fname)
    if (ext not in _LANGS):
        if verbose:
            print((('skip ' + fname) + ', unknown file extension'))
        return False
    return True
def _valid_file(fname, verbose=False):
    if any([(l in fname) for l in _WHITE_LIST]):
        if verbose:
            print((('skip ' + fname) + ', it matches the white list'))
        return False
    (_, ext) = os.path.splitext(fname)
    if (ext not in _LANGS):
        if verbose:
            print((('skip ' + fname) + ', unknown file extension'))
        return False
    return True