def _clear_dict(endpoint_props):
 return dict(((prop_name, prop_val) for (prop_name, prop_val) in six.iteritems(endpoint_props) if (prop_val is not None)))

def _clear_dict ( endpoint_props ) : return dict ( ( ( prop_name , prop_val ) for ( prop_name , prop_val ) in six . iteritems ( endpoint_props ) if ( prop_val is not None ) ) )
eliminates none entries from the features of the endpoint dict .