[elbe-devel] [PATCH 3/5] pylint: test/updated - fix redefine

Manuel Traut manut at linutronix.de
Fri Aug 24 16:00:35 CEST 2018


Redefining name 'monitor' from outer scope

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 test/updated.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/updated.py b/test/updated.py
index e03a0e87..b05f3306 100755
--- a/test/updated.py
+++ b/test/updated.py
@@ -44,11 +44,11 @@ class MonitorThread (threading.Thread):
         self.server.serve_forever()
 
 
-def shutdown(monitor):
-    if monitor.server:
-        monitor.server.shutdown()
+def shutdown(mon):
+    if mon.server:
+        mon.server.shutdown()
 
-    monitor.join()
+    mon.join()
     sys.exit(0)
 
 
-- 
2.18.0




More information about the elbe-devel mailing list