clean-up: fix PEP8 E271 multiple spaces after keyword
--- a/Beremiz_service.py Mon Aug 14 23:34:22 2017 +0300
+++ b/Beremiz_service.py Mon Aug 14 23:38:28 2017 +0300
@@ -296,7 +296,7 @@
def OnTaskBarStartPLC(self, evt):
if self.pyroserver.plcobj is not None:
plcstatus = self.pyroserver.plcobj.GetPLCstatus()[0]
- if plcstatus is "Stopped":
+ if plcstatus is "Stopped": self.pyroserver.plcobj.StartPLC()
print _("PLC is empty or already started.")
--- a/ConfigTreeNode.py Mon Aug 14 23:34:22 2017 +0300
+++ b/ConfigTreeNode.py Mon Aug 14 23:38:28 2017 +0300
@@ -352,13 +352,13 @@
@return: String "ParentParentName.ParentName.Name"
- return self.CTNParent._GetCurrentName() + self.BaseParams.getName()
+ return self.CTNParent._GetCurrentName() + self.BaseParams.getName() def _GetCurrentName(self):
@return: String "ParentParentName.ParentName.Name."
- return self.CTNParent._GetCurrentName() + self.BaseParams.getName() + "."
+ return self.CTNParent._GetCurrentName() + self.BaseParams.getName() + "." return self.CTNParent.GetCTRoot()
--- a/canfestival/canfestival.py Mon Aug 14 23:34:22 2017 +0300
+++ b/canfestival/canfestival.py Mon Aug 14 23:38:28 2017 +0300
@@ -77,10 +77,10 @@
- "type": LOCATION_CONFNODE,
- "location": ".".join([str(i) for i in current_location]) + ".x",
+ "type": LOCATION_CONFNODE, + "location": ".".join([str(i) for i in current_location]) + ".x", #--------------------------------------------------
--- a/controls/VariablePanel.py Mon Aug 14 23:34:22 2017 +0300
+++ b/controls/VariablePanel.py Mon Aug 14 23:38:28 2017 +0300
@@ -323,7 +323,7 @@
elif (element_type not in ["config", "resource", "function"] and values[1] == "Global" and
self.ParentWindow.Filter in ["All", "Interface", "External"] or
element_type != "function" and values[1] in ["location", "NamedConstant"]):
- if values[1] in ["location","NamedConstant"]:
+ if values[1] in ["location","NamedConstant"]: --- a/dialogs/DiscoveryDialog.py Mon Aug 14 23:34:22 2017 +0300
+++ b/dialogs/DiscoveryDialog.py Mon Aug 14 23:38:28 2017 +0300
@@ -25,7 +25,7 @@
-import wx.lib.mixins.listctrl as listmix
+import wx.lib.mixins.listctrl as listmix from util.Zeroconf import *
--- a/i18n/mki18n.py Mon Aug 14 23:34:22 2017 +0300
+++ b/i18n/mki18n.py Mon Aug 14 23:38:28 2017 +0300
@@ -451,7 +451,7 @@
for (opt,val) in optionList:
elif (opt == '-e'): option['forceEnglish'] = 1
--- a/svgui/pyjs/pyjs.py Mon Aug 14 23:34:22 2017 +0300
+++ b/svgui/pyjs/pyjs.py Mon Aug 14 23:38:28 2017 +0300
@@ -1370,7 +1370,7 @@
if isinstance(node.value, unicode):
- return "String('%s')" % escapejs(v)
+ return "String('%s')" % escapejs(v) @@ -1471,7 +1471,7 @@
lower = self.expr(node.lower, current_klass)
upper = self.expr(node.upper, current_klass)
- return "pyjslib.slice(" + self.expr(node.expr, current_klass) + ", " + lower + ", " + upper + ")"
+ return "pyjslib.slice(" + self.expr(node.expr, current_klass) + ", " + lower + ", " + upper + ")" raise TranslationError("unsupported flag (in _slice)", node)
--- a/targets/typemapping.py Mon Aug 14 23:34:22 2017 +0300
+++ b/targets/typemapping.py Mon Aug 14 23:38:28 2017 +0300
@@ -47,7 +47,7 @@
("ns", c_long)] # tv_nsec
-def _t(t, u=lambda x:x.value, p=lambda t,x:t(x)): return (t, u, p)
+def _t(t, u=lambda x:x.value, p=lambda t,x:t(x)): return (t, u, p) def _ttime(): return (IEC_TIME,
--- a/version.py Mon Aug 14 23:34:22 2017 +0300
+++ b/version.py Mon Aug 14 23:38:28 2017 +0300
@@ -30,7 +30,7 @@
def GetCommunityHelpMsg():
- return _("The best place to ask questions about Beremiz/PLCOpenEditor\n"
+ return _("The best place to ask questions about Beremiz/PLCOpenEditor\n" "is project's mailing list: beremiz-devel@lists.sourceforge.net\n"
"This is the main community support channel.\n"