Fix pylint warning [C0325(superfluous-parens), ] Unnecessary parens after u'if' keyword
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Mar 2019 12:07:49 +0300
changeset 2546 f5dae7b85906
parent 2545 1cc6390a7c0b
child 2547 fc7de3c128cd
Fix pylint warning [C0325(superfluous-parens), ] Unnecessary parens after u'if' keyword

************* Module runtime.PLCObject
runtime/PLCObject.py:609: [C0325(superfluous-parens), ] Unnecessary parens after u'if' keyword
runtime/PLCObject.py
--- a/runtime/PLCObject.py	Wed Mar 13 15:58:34 2019 +0300
+++ b/runtime/PLCObject.py	Mon Mar 18 12:07:49 2019 +0300
@@ -606,7 +606,7 @@
 
     @RunInMain
     def GetTraceVariables(self, DebugToken):
-        if (DebugToken is not None and DebugToken == self.DebugToken):
+        if DebugToken is not None and DebugToken == self.DebugToken:
             return self.PLCStatus, self._TracesSwap()
         return PlcStatus.Broken, []