pep8 white spaces
authorEdouard Tisserant
Tue, 09 Apr 2019 13:18:51 +0200
changeset 2586 b89484560a97
parent 2585 fc6f441582cb
child 2587 c67488bd8134
pep8 white spaces
runtime/PLCObject.py
runtime/__init__.py
--- a/runtime/PLCObject.py	Tue Apr 09 13:13:27 2019 +0200
+++ b/runtime/PLCObject.py	Tue Apr 09 13:18:51 2019 +0200
@@ -391,7 +391,6 @@
         self.PythonThread = Thread(target=self.PythonThreadProc)
         self.PythonThread.start()
 
-
     # used internaly
     def PythonRuntimeCleanup(self):
         if self.python_runtime_vars is not None:
@@ -436,19 +435,17 @@
                 cmd = self.PythonThreadCmd
                 self.PythonThreadCmd = "Wait"
             self.PythonThreadCondLock.release()
-            
-            if cmd == "Activate" :
+
+            if cmd == "Activate":
                 self.PythonRuntimeCall("start")
-
                 self.PythonThreadLoop()
-                
                 self.PythonRuntimeCall("stop")
             else:  # "Finish"
                 break
 
     def PythonThreadCommand(self, cmd):
         self.PythonThreadCondLock.acquire()
-        self.PythonThreadCmd = cmd 
+        self.PythonThreadCmd = cmd
         self.PythonThreadCond.notify()
         self.PythonThreadCondLock.release()
 
--- a/runtime/__init__.py	Tue Apr 09 13:13:27 2019 +0200
+++ b/runtime/__init__.py	Tue Apr 09 13:18:51 2019 +0200
@@ -38,5 +38,3 @@
     except Exception:
         res = (None, sys.exc_info())
     return res
-
-