runtime/PLCObject.py
changeset 1878 fb73a6b6622d
parent 1868 616c3f4bcbcb
child 1881 091005ec69c4
--- a/runtime/PLCObject.py	Thu Oct 19 10:57:35 2017 +0300
+++ b/runtime/PLCObject.py	Thu Oct 19 11:03:03 2017 +0300
@@ -48,9 +48,9 @@
 
 
 lib_ext = {
-     "linux2": ".so",
-     "win32":  ".dll",
-     }.get(sys.platform, "")
+    "linux2": ".so",
+    "win32":  ".dll",
+}.get(sys.platform, "")
 
 
 def PLCprint(message):
@@ -85,8 +85,8 @@
         # Get the last transfered PLC if connector must be restart
         try:
             self.CurrentPLCFilename = open(
-                             self._GetMD5FileName(),
-                             "r").read().strip() + lib_ext
+                self._GetMD5FileName(),
+                "r").read().strip() + lib_ext
             if self.LoadPLC():
                 self.PLCStatus = "Stopped"
         except Exception:
@@ -560,5 +560,5 @@
             _e_type, e_value, e_traceback = sys.exc_info()
             line_no = traceback.tb_lineno(get_last_traceback(e_traceback))
             return (-1, "RemoteExec script failed!\n\nLine %d: %s\n\t%s" %
-                        (line_no, e_value, script.splitlines()[line_no - 1]))
+                    (line_no, e_value, script.splitlines()[line_no - 1]))
         return (0, kwargs.get("returnVal", None))