From 9eac763e3801dca35d536f24ba61b29b78910faf Mon Sep 17 00:00:00 2001 From: Satoshi Kobayashi Date: Tue, 10 Sep 2013 10:20:26 +0900 Subject: [PATCH] Support old style class Since __base__ does not exist in old style class, it becomes an error. Signed-off-by: Satoshi Kobayashi Signed-off-by: FUJITA Tomonori --- ryu/base/app_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index c666f2cb..b39d6cc2 100644 --- a/ryu/base/app_manager.py +++ b/ryu/base/app_manager.py @@ -185,7 +185,7 @@ class AppManager(object): assert not key in self.contexts self.contexts[key] = context # hack for dpset - if context.__class__.__base__ == RyuApp: + if issubclass(context.__class__, RyuApp): register_app(context) return self.contexts