snowplow_analytics_sdk/run_manifests.py
def clean_dict(dict):
    """Remove all keys with Nones as values

    >>> clean_dict({'key': None})
    {}
    >>> clean_dict({'empty_s': ''})
    {'empty_s': ''}
    """
    if sys.version_info[0] < 3:
        return {k: v for k, v in dict.iteritems() if v is not None}
    else:
        return {k: v for k, v in dict.items() if v is not None}
def clean_dict(dict):
    if sys.version_info[0] < 3:
        return {k: v for k, v in dict.iteritems() if v is not None}
    else:
        return {k: v for k, v in dict.items() if v is not None}
def clean_dict ( dict ) : if sys . version_info [ 0 ] < 3 : return { k : v for k , v in dict . iteritems ( ) if v is not None } else : return { k : v for k , v in dict . items ( ) if v is not None }
Remove all keys with Nones as values

    >>> clean_dict({'key': None})
    {}
    >>> clean_dict({'empty_s': ''})
    {'empty_s': ''}
Remove all keys with Nones as values