summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSatoshi Kobayashi <satoshi-k@stratosphere.co.jp>2013-09-10 10:20:26 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-09-14 08:01:34 +0900
commit9eac763e3801dca35d536f24ba61b29b78910faf (patch)
tree3bf3529dc16201e4f848d62b0ca28b064e8f9677
parent9ae95a88d41522ab232cf2fa27998114a7b34077 (diff)
Support old style class
Since __base__ does not exist in old style class, it becomes an error. Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/base/app_manager.py2
1 files changed, 1 insertions, 1 deletions
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