clean-up: fix PEP8 E125 continuation line with same indent as next logical line
--- a/BeremizIDE.py Fri Aug 18 20:14:38 2017 +0300
+++ b/BeremizIDE.py Fri Aug 18 23:39:15 2017 +0300
@@ -432,7 +432,7 @@
# Icons for other items
for imgname, itemtype in [
- ("Extension", ITEM_CONFNODE)]:
+ ("Extension", ITEM_CONFNODE)]:
self.TreeImageDict[itemtype] = self.TreeImageList.Add(GetBitmap(imgname))
if projectOpen is not None:
--- a/PLCGenerator.py Fri Aug 18 20:14:38 2017 +0300
+++ b/PLCGenerator.py Fri Aug 18 23:39:15 2017 +0300
@@ -1526,8 +1526,8 @@
(ReIndentText(transitionBody.getcontent().getanyText(), len(self.CurrentIndent)), (self.TagName, "body", len(self.CurrentIndent)))]
else:
for instance in transitionBody.getcontentInstances():
- if isinstance(instance, OutVariableClass) and instance.getexpression() == transitionValues["value"]\
- or isinstance(instance, CoilClass) and instance.getvariable() == transitionValues["value"]:
+ if isinstance(instance, OutVariableClass) and instance.getexpression() == transitionValues["value"] or \
+ isinstance(instance, CoilClass) and instance.getvariable() == transitionValues["value"]:
connections = instance.connectionPointIn.getconnections()
if connections is not None:
expression = self.ComputeExpression(transitionBody, connections)
--- a/controls/CustomToolTip.py Fri Aug 18 20:14:38 2017 +0300
+++ b/controls/CustomToolTip.py Fri Aug 18 23:39:15 2017 +0300
@@ -87,8 +87,7 @@
new_line = words[0]
for word in words[1:]:
# Add word to line
- if len(new_line + " " + word) <= \
- TOOLTIP_MAX_CHARACTERS:
+ if len(new_line + " " + word) <= TOOLTIP_MAX_CHARACTERS:
new_line += " " + word
# Create new line
else:
--- a/svgui/pyjs/jsonrpc/django/jsonrpc.py Fri Aug 18 20:14:38 2017 +0300
+++ b/svgui/pyjs/jsonrpc/django/jsonrpc.py Fri Aug 18 23:39:15 2017 +0300
@@ -120,8 +120,8 @@
def describe_field(field):
res = {}
field_type = field.__class__.__name__
- for fname in field_names.get(field_type, []) + \
- ['help_text', 'label', 'initial', 'required']:
+ for fname in (field_names.get(field_type, []) +
+ ['help_text', 'label', 'initial', 'required']):
res[fname] = getattr(field, fname)
if field_type in ['ComboField', 'MultiValueField', 'SplitDateTimeField']:
res['fields'] = map(describe_field, field.fields)