def _msg_type_to_str(mod, type_):
 return ('%s(%d)' % (_get_value_name(mod, type_, 'OFPT_'), type_))

def _msg_type_to_str ( mod , type_ ) : return ( '%s(%d)' % ( _get_value_name ( mod , type_ , 'OFPT_' ) , type_ ) )
this method is registered as ofp_msg_type_to_str method into ryu .