# HG changeset patch # User Andrey Skvortsov # Date 1503091822 -10800 # Node ID c3679f96020b1f7f4e5302545c1e7a859fee6419 # Parent f68a105000be09dbe3d888c2cb5e3c5b871b45b8 clean-up: fix PEP8 W191 indentation contains tabs diff -r f68a105000be -r c3679f96020b controls/VariablePanel.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): diff -r f68a105000be -r c3679f96020b editors/CodeFileEditor.py --- 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())