py_ext/PythonFileCTNMixin.py
changeset 1768 691083b5682a
parent 1766 c1e5b9f19483
child 1777 c46ec818bdd7
--- a/py_ext/PythonFileCTNMixin.py	Fri Aug 18 12:36:31 2017 +0300
+++ b/py_ext/PythonFileCTNMixin.py	Fri Aug 18 20:14:38 2017 +0300
@@ -115,7 +115,8 @@
                     "pyextname": pyextname},
                     self.CodeFile.variables.variable)
         # python side PLC global variables access stub
-        globalstubs = "\n".join(["""\
+        globalstubs = "\n".join([
+            """\
 _%(name)s_ctype, _%(name)s_unpack, _%(name)s_pack = \\
     TypeTranslator["%(IECtype)s"]
 _PySafeGetPLCGlob_%(name)s = PLCBinary.__SafeGetPLCGlob_%(name)s
@@ -130,8 +131,7 @@
     %(desc)s,
     %(onchange)s,
     %(opts)s))
-""" % varinfo
-      for varinfo in varinfos])
+""" % varinfo for varinfo in varinfos])
 
         # Runtime calls (start, stop, init, and cleanup)
         rtcalls = ""
@@ -173,7 +173,7 @@
 
         # write generated content to python file
         runtimefile_path = os.path.join(buildpath,
-            "runtime_%s.py" % location_str)
+                                        "runtime_%s.py" % location_str)
         runtimefile = open(runtimefile_path, 'w')
         runtimefile.write(PyFileContent.encode('utf-8'))
         runtimefile.close()