etherlab/runtime_etherlab.py
changeset 2375 cfa68a06a24d
parent 2372 51f3acc89a58
child 2389 f86eefc8d378
--- a/etherlab/runtime_etherlab.py	Sat Sep 29 13:04:33 2018 +0300
+++ b/etherlab/runtime_etherlab.py	Sat Sep 29 13:29:20 2018 +0300
@@ -44,7 +44,7 @@
         Result = res == 0
 
     SDOAnswered()
-    if res != 0 :
+    if res != 0:
         PLCObject.LogMessage(
             LogLevelsDict["WARNING"],
             "%s : %s" % (command, output))
@@ -88,9 +88,9 @@
     while not StopKMSGThread:
         bytes_to_read = klog(3, s, len(s)-1)
         log = s.value[:bytes_to_read-1]
-        if last :
+        if last:
             log = log.rpartition(last)[2]
-        if log :
+        if log:
             last = log.rpartition('\n')[2]
             for lvl, msg in re.findall(
                             r'<(\d)>\[\s*\d*\.\d*\]\s*(EtherCAT\s*.*)$',