mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-04 20:06:09 +02:00
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:
parent
9ae95a88d4
commit
9eac763e38
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user