pylint fix

> W:201,12:AppManager.instantiate_apps: Unused variable 'key'
> W:222,24:AppManager.instantiate_apps: Unused variable 'handler'

Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/base/app_manager.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py
index 588ed5e..f285322 100644
--- a/ryu/base/app_manager.py
+++ b/ryu/base/app_manager.py
@@ -198,7 +198,7 @@ class AppManager(object):
             register_app(app)
             self.applications[app_name] = app
 
-        for key, i in SERVICE_BRICKS.items():
+        for i in SERVICE_BRICKS.values():
             for _k, m in inspect.getmembers(i, inspect.ismethod):
                 if hasattr(m, 'observer'):
                     # name is module name of ev_cls
@@ -218,7 +218,7 @@ class AppManager(object):
             LOG.debug("BRICK %s" % brick)
             for ev_cls, list in i.observers.items():
                 LOG.debug("  PROVIDES %s TO %s" % (ev_cls.__name__, list))
-            for ev_cls, handler in i.event_handlers.items():
+            for ev_cls in i.event_handlers.keys():
                 LOG.debug("  CONSUMES %s" % (ev_cls.__name__,))
 
     def close(self):
-- 
1.7.10.4


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to