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>
This commit is contained in:
Satoshi Kobayashi 2013-09-10 10:20:26 +09:00 committed by FUJITA Tomonori
parent 9ae95a88d4
commit 9eac763e38

View File

@ -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