def _error_type_to_str(mod, type_):
 return ('%s(%d)' % (_get_value_name(mod, type_, 'OFPET_'), type_))

def _error_type_to_str ( mod , type_ ) : return ( '%s(%d)' % ( _get_value_name ( mod , type_ , 'OFPET_' ) , type_ ) )
this method is registered as ofp_error_type_to_str method into ryu .