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 <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Isaku Yamahata 2013-04-04 12:28:02 +09:00 committed by FUJITA Tomonori
parent 7bd83a89a2
commit e48512f555

View File

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