summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason Kölker <jason@koelker.net>2016-03-04 00:41:22 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-11 23:44:45 +0900
commit57c68972108697c54b6c82bc252a4556d648f823 (patch)
treec0176991e88247953ad4476504dd564eda95fa85
parentdb02d0f487216af59b509a3241ae028b871fb692 (diff)
protocols/ovsdb: Fix shadow loop variables [F402]
Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/ovsdb/client.py6
-rw-r--r--ryu/services/protocols/ovsdb/manager.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/ryu/services/protocols/ovsdb/client.py b/ryu/services/protocols/ovsdb/client.py
index 387d91b6..525b4328 100644
--- a/ryu/services/protocols/ovsdb/client.py
+++ b/ryu/services/protocols/ovsdb/client.py
@@ -261,9 +261,9 @@ class RemoteOvsdb(app_manager.RyuApp):
hub.sleep(0.1)
continue
- for event in events:
- ev = event[0]
- args = event[1]
+ for e in events:
+ ev = e[0]
+ args = e[1]
self._submit_event(ev(self.system_id, *args))
hub.sleep(0)
diff --git a/ryu/services/protocols/ovsdb/manager.py b/ryu/services/protocols/ovsdb/manager.py
index 327f2167..afe949fc 100644
--- a/ryu/services/protocols/ovsdb/manager.py
+++ b/ryu/services/protocols/ovsdb/manager.py
@@ -137,8 +137,8 @@ class OVSDB(app_manager.RyuApp):
self.main_thread = None
# NOTE(jkoelker) Stop all the clients
- for client in self._clients.values():
- client.stop()
+ for c in self._clients.values():
+ c.stop()
# NOTE(jkoelker) super will only take care of the event and joining now
super(OVSDB, self).stop()