(resource)
return ret
Return a copy of a resource dict with extraneous properties removed.
Return a copy of a resource dict with extraneous properties removed.
Return a copy of a resource dict with extraneous properties removed .
def _StripResource(resource):
  """Return a copy of a resource dict with extraneous properties removed."""
  if not isinstance(resource, dict):
    return resource
  ret = collections.OrderedDict()
  for name, value in resource.iteritems():
    if name not in _EXTRA_PROPERTIES:
      ret[name] = _StripResource(value)
  return ret
def _StripResource ( resource ) : if not isinstance ( resource , dict ) : return resource ret = collections . OrderedDict ( ) for name , value in resource . iteritems ( ) : if name not in _EXTRA_PROPERTIES : ret [ name ] = _StripResource ( value ) return ret