def without_none_values(iterable):
 try:
  return {k: v for (k, v) in six.iteritems(iterable) if (v is not None)}
 except AttributeError:
  return type(iterable)((v for v in iterable if (v is not None)))

def without_none_values ( iterable ) : try : return { k : v for ( k , v ) in six . iteritems ( iterable ) if ( v is not None ) } except AttributeError : return type ( iterable ) ( ( v for v in iterable if ( v is not None ) ) )
return a copy of iterable with all none entries removed .