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