def dict_filter_nones(dict_):
    r"""
    Removes None values

    Args:
        dict_ (dict):  a dictionary

    Returns:
        dict:

    CommandLine:
        python -m utool.util_dict --exec-dict_filter_nones

    Example:
        >>> # DISABLE_DOCTEST
        >>> # UNSTABLE_DOCTEST
        >>> # fails on python 3 because of dict None order
        >>> from utool.util_dict import *  # NOQA
        >>> import utool as ut
        >>> dict_ = {1: None, 2: 'blue', 3: 'four', None: 'fun'}
        >>> dict2_ = dict_filter_nones(dict_)
        >>> result = ut.repr4(dict2_, nl=False)
        >>> print(result)
        {None: 'fun', 2: 'blue', 3: 'four'}
    """
    dict2_ = {
        key: val
        for key, val in six.iteritems(dict_)
        if val is not None
    }
    return dict2_
def dict_filter_nones ( dict_ ) : dict2_ = { key : val for key , val in six . iteritems ( dict_ ) if val is not None } return dict2_
r"""
    Removes None values

    Args:
        dict_ (dict):  a dictionary

    Returns:
        dict:

    CommandLine:
        python -m utool.util_dict --exec-dict_filter_nones

    Example:
        >>> # DISABLE_DOCTEST
        >>> # UNSTABLE_DOCTEST
        >>> # fails on python 3 because of dict None order
        >>> from utool.util_dict import *  # NOQA
        >>> import utool as ut
        >>> dict_ = {1: None, 2: 'blue', 3: 'four', None: 'fun'}
        >>> dict2_ = dict_filter_nones(dict_)
        >>> result = ut.repr4(dict2_, nl=False)
        >>> print(result)
        {None: 'fun', 2: 'blue', 3: 'four'}