clean etherlab: pep8, E122 continuation line missing indentation or outdented
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 29 Sep 2018 15:31:50 +0300
changeset 2384 d7d9f0e60bc9
parent 2383 6cc3460be285
child 2385 f2a53fa6e5d7
clean etherlab: pep8, E122 continuation line missing indentation or outdented
etherlab/CommonEtherCATFunction.py
etherlab/EtherCATManagementEditor.py
etherlab/etherlab.py
--- a/etherlab/CommonEtherCATFunction.py	Sat Sep 29 15:24:07 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py	Sat Sep 29 15:31:50 2018 +0300
@@ -150,7 +150,7 @@
 
     # category of SDO data
     DatatypeDescription, CommunicationObject, ManufacturerSpecific, \
-    ProfileSpecific, Reserved, AllSDOData = range(6)
+        ProfileSpecific, Reserved, AllSDOData = range(6)
 
     # store the execution result of "ethercat sdos" command into SaveSDOData.
     SaveSDOData = []
@@ -1220,10 +1220,10 @@
         en_safeop = False
         en_lrw = False
         if device.getType().getTcCfgModeSafeOp() is True \
-        or device.getType().getTcCfgModeSafeOp() == 1:
+           or device.getType().getTcCfgModeSafeOp() == 1:
             en_safeop = True
         if device.getType().getUseLrdLwr() is True \
-        or device.getType().getUseLrdLwr() == 1:
+           or device.getType().getUseLrdLwr() == 1:
             en_lrw = True
 
         flags = "0b"+"000000"+str(int(en_lrw))+str(int(en_safeop))
--- a/etherlab/EtherCATManagementEditor.py	Sat Sep 29 15:24:07 2018 +0300
+++ b/etherlab/EtherCATManagementEditor.py	Sat Sep 29 15:31:50 2018 +0300
@@ -329,7 +329,7 @@
         wx.Panel.__init__(self, parent, -1)
 
         self.DatatypeDescription, self.CommunicationObject, self.ManufacturerSpecific, \
-        self.ProfileSpecific, self.Reserved, self.AllSDOData = range(6)
+            self.ProfileSpecific, self.Reserved, self.AllSDOData = range(6)
 
         self.Controler = controler
 
--- a/etherlab/etherlab.py	Sat Sep 29 15:24:07 2018 +0300
+++ b/etherlab/etherlab.py	Sat Sep 29 15:31:50 2018 +0300
@@ -157,27 +157,36 @@
 class ModulesLibrary:
 
     MODULES_EXTRA_PARAMS = [
-        ("pdo_alignment", {
-            "column_label": _("PDO alignment"),
-            "column_size": 150,
-            "default": 8,
-            "description": _(
-"Minimal size in bits between 2 pdo entries")}),
-        ("max_pdo_size", {
-            "column_label": _("Max entries by PDO"),
-            "column_size": 150,
-            "default": 255,
-            "description": _(
-"""Maximal number of entries mapped in a PDO
-including empty entries used for PDO alignment""")}),
-        ("add_pdo", {
-            "column_label": _("Creating new PDO"),
-            "column_size": 150,
-            "default": 0,
-            "description": _(
-"""Adding a PDO not defined in default configuration
+        (
+            "pdo_alignment",
+            {
+                "column_label": _("PDO alignment"),
+                "column_size": 150,
+                "default": 8,
+                "description": _("Minimal size in bits between 2 pdo entries")
+            }
+        ),
+        (
+            "max_pdo_size",
+            {
+                "column_label": _("Max entries by PDO"),
+                "column_size": 150,
+                "default": 255,
+                "description": _("""Maximal number of entries mapped in a PDO
+including empty entries used for PDO alignment""")
+            }
+        ),
+        (
+            "add_pdo",
+            {
+                "column_label": _("Creating new PDO"),
+                "column_size": 150,
+                "default": 0,
+                "description": _("""Adding a PDO not defined in default configuration
 for mapping needed location variables
-(1 if possible)""")})
+(1 if possible)""")
+            }
+        )
     ]
 
     def __init__(self, path, parent_library=None):