diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2012-03-07 20:53:28 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-03-08 05:54:20 +0900 |
commit | cdb513cce764e5313eb1cc113b18090d66b4cf1a (patch) | |
tree | 05763726aa221a3cf53b4b276aa247c93144dec1 | |
parent | ba5ce1a72e7f09c60e5f270ba0b489135957802e (diff) |
ryu/handler: class decorator should return class object
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/controller/handler.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ryu/controller/handler.py b/ryu/controller/handler.py index 01db88df..24944dc9 100644 --- a/ryu/controller/handler.py +++ b/ryu/controller/handler.py @@ -82,6 +82,7 @@ def register_cls(dispatchers=None): # LOG.debug('register dispatcher %s ev %s cls %s k %s f %s', # d.name, f.ev_cls, cls, k, f) d.register_handler(f.ev_cls, f) + return cls return _register_cls_method |