def _PropertyPresenter(dumper, prop):
 prop_copy = copy.copy(prop)
 if (prop.mode is None):
  del prop_copy.mode
 if (prop.direction is None):
  del prop_copy.direction
 return dumper.represent_object(prop_copy)

def _PropertyPresenter ( dumper , prop ) : prop_copy = copy . copy ( prop ) if ( prop . mode is None ) : del prop_copy . mode if ( prop . direction is None ) : del prop_copy . direction return dumper . represent_object ( prop_copy )
a pyyaml presenter for property .