etherlab/runtime_etherlab.py
changeset 2422 45aa510d7a2a
parent 2407 5f2b1bb464a0
child 2643 b98d9e08231f
--- a/etherlab/runtime_etherlab.py	Wed Oct 03 11:48:05 2018 +0300
+++ b/etherlab/runtime_etherlab.py	Wed Oct 03 12:07:56 2018 +0300
@@ -65,7 +65,6 @@
 
 
 def GetResult():
-    global Result
     return Result
 
 
@@ -80,7 +79,6 @@
     Last 4 KB are polled, and lines compared to last
     captured line to detect new lines
     """
-    global StopKMSGThread
     libc = ctypes.CDLL("libc.so.6")
     klog = libc.klogctl
     klog.argtypes = [ctypes.c_int, ctypes.c_char_p, ctypes.c_int]
@@ -113,7 +111,7 @@
 
 
 def _runtime_etherlab_cleanup():
-    global KMSGPollThread, StopKMSGThread, SDOProc, SDOThread
+    global KMSGPollThread, StopKMSGThread, SDOThread
     try:
         os.kill(SDOProc.pid, signal.SIGTERM)
     except Exception: