Since __base__ does not exist in old style class, it becomes an error.
Signed-off-by: Satoshi Kobayashi <[email protected]>
---
ryu/base/app_manager.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py
index c666f2c..b39d6cc 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
--
1.7.1
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel