From 733074151bb02b66b23a97a8c32d9125e47ab202 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 5 Feb 2013 20:10:41 +0900 Subject: controller/handler: allow set_ev_cls not to specify dispatchers Signed-off-by: FUJITA Tomonori --- ryu/controller/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/controller/handler.py b/ryu/controller/handler.py index 9a09e99b..615fd120 100644 --- a/ryu/controller/handler.py +++ b/ryu/controller/handler.py @@ -29,7 +29,7 @@ DEAD_DISPATCHER = "dead" # should be named something like 'observe_event' -def set_ev_cls(ev_cls, dispatchers): +def set_ev_cls(ev_cls, dispatchers=None): def _set_ev_cls_dec(handler): handler.ev_cls = ev_cls handler.dispatchers = _listify(dispatchers) -- cgit v1.2.3