summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-02-05 20:10:41 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-02-05 23:37:48 +0900
commit733074151bb02b66b23a97a8c32d9125e47ab202 (patch)
treed84313a231f3a54e6603c0539ac608aa774da0c8
parente91758277c902bf11ecb1ae8b68200f290ab49cb (diff)
controller/handler: allow set_ev_cls not to specify dispatchers
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/controller/handler.py2
1 files changed, 1 insertions, 1 deletions
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)