From e48512f555307cbcd4175e73a4292ef8f4467b0c Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Thu, 4 Apr 2013 12:28:02 +0900 Subject: ryu/base/app_manager: pylint unused variables 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 Signed-off-by: FUJITA Tomonori --- 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 588ed5e6..f285322e 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): -- cgit v1.2.3