def _obfuscate_inner(var):
 if isinstance(var, (dict, salt.utils.odict.OrderedDict)):
  return var.__class__(((key, _obfuscate_inner(val)) for (key, val) in six.iteritems(var)))
 elif isinstance(var, (list, set, tuple)):
  return type(var)((_obfuscate_inner(v) for v in var))
 else:
  return '<{0}>'.format(var.__class__.__name__)

def _obfuscate_inner ( var ) : if isinstance ( var , ( dict , salt . utils . odict . OrderedDict ) ) : return var . __class__ ( ( ( key , _obfuscate_inner ( val ) ) for ( key , val ) in six . iteritems ( var ) ) ) elif isinstance ( var , ( list , set , tuple ) ) : return type ( var ) ( ( _obfuscate_inner ( v ) for v in var ) ) else : return '<{0}>' . format ( var . __class__ . __name__ )
recursive obfuscation of collection types .