clean-up: fix PEP8 W191 indentation contains tabs
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 19 Aug 2017 00:30:22 +0300
changeset 1772 c3679f96020b
parent 1771 f68a105000be
child 1773 38fde37c3766
clean-up: fix PEP8 W191 indentation contains tabs
controls/VariablePanel.py
editors/CodeFileEditor.py
--- a/controls/VariablePanel.py	Sat Aug 19 00:11:12 2017 +0300
+++ b/controls/VariablePanel.py	Sat Aug 19 00:30:22 2017 +0300
@@ -50,9 +50,17 @@
 
 def GetVariableTableColnames(location):
     _ = NoTranslate
-    if location:
-    	return ["#", _("Name"), _("Class"), _("Type"), _("Location"), _("Initial Value"), _("Option"), _("Documentation")]
-    return ["#", _("Name"), _("Class"), _("Type"), _("Initial Value"), _("Option"), _("Documentation")]
+    cols = ["#",
+            _("Name"),
+            _("Class"),
+            _("Type"),
+            _("Location"),
+            _("Initial Value"),
+            _("Option"),
+            _("Documentation")]
+    if not location:
+        del cols[4]  # remove 'Location' column
+    return cols
 
 
 def GetOptions(constant=True, retain=True, non_retain=True):
--- a/editors/CodeFileEditor.py	Sat Aug 19 00:11:12 2017 +0300
+++ b/editors/CodeFileEditor.py	Sat Aug 19 00:30:22 2017 +0300
@@ -743,7 +743,13 @@
 
     def GetVariableTableColnames(self):
         _ = NoTranslate
-    	return ["#", _("Name"), _("Type"), _("Initial"), _("Description"), _("OnChange"), _("Options")]
+        return ["#",
+                _("Name"),
+                _("Type"),
+                _("Initial"),
+                _("Description"),
+                _("OnChange"),
+                _("Options")]
 
     def RefreshModel(self):
         self.Controler.SetVariables(self.Table.GetData())