# HG changeset patch # User Andrey Skvortsov # Date 1503088755 -10800 # Node ID 4665ba25a0ba6be0705f2220238c434e917a5513 # Parent 691083b5682a1d38f37a5c3f072d58e4d7563bbd clean-up: fix PEP8 E125 continuation line with same indent as next logical line diff -r 691083b5682a -r 4665ba25a0ba BeremizIDE.py --- 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: diff -r 691083b5682a -r 4665ba25a0ba PLCGenerator.py --- 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) diff -r 691083b5682a -r 4665ba25a0ba controls/CustomToolTip.py --- 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: diff -r 691083b5682a -r 4665ba25a0ba svgui/pyjs/jsonrpc/django/jsonrpc.py --- 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)