def is_acceptable_filename (filename, extents):
    """ Tell whether the given filename has one of the given set of accepatable
        file extensions or not. """
    if (filename is None):                  # sanity check
        return False
    return (filename.endswith(tuple(extents)))