def set_ev_cls(ev_cls, dispatchers=None):
 def _set_ev_cls_dec(handler):
  if ('callers' not in dir(handler)):
   handler.callers = {}
  for e in _listify(ev_cls):
   handler.callers[e] = _Caller(_listify(dispatchers), e.__module__)
  return handler
 return _set_ev_cls_dec

def set_ev_cls ( ev_cls , dispatchers = None ) : def _set_ev_cls_dec ( handler ) : if ( 'callers' not in dir ( handler ) ) : handler . callers = { } for e in _listify ( ev_cls ) : handler . callers [ e ] = _Caller ( _listify ( dispatchers ) , e . __module__ ) return handler return _set_ev_cls_dec
a decorator for ryu application to declare an event handler .