diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-02-08 12:28:15 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-02-08 22:55:39 +0900 |
commit | b869748e4bc0ee6986fa280aa69027aaf8607dcb (patch) | |
tree | 537774232783a17e5eaeb4f63cd89559dd100cac | |
parent | 4b8a4fc870a183dc1802698ef7ea5aaf73697db6 (diff) |
controller/handler: allow set_ev_handler without dispatchers
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/controller/handler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/controller/handler.py b/ryu/controller/handler.py index 615fd120..ba45b0dc 100644 --- a/ryu/controller/handler.py +++ b/ryu/controller/handler.py @@ -38,7 +38,7 @@ def set_ev_cls(ev_cls, dispatchers=None): return _set_ev_cls_dec -def set_ev_handler(ev_cls, dispatchers): +def set_ev_handler(ev_cls, dispatchers=None): def _set_ev_cls_dec(handler): handler.ev_cls = ev_cls handler.dispatchers = _listify(dispatchers) |