eric6/Utilities/ClassBrowsers/idlclbr.py

changeset 7259
7c017076c12e
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r aff39db4dacc -r 7c017076c12e eric6/Utilities/ClassBrowsers/idlclbr.py
--- a/eric6/Utilities/ClassBrowsers/idlclbr.py	Mon Sep 23 19:10:42 2019 +0200
+++ b/eric6/Utilities/ClassBrowsers/idlclbr.py	Mon Sep 23 19:22:12 2019 +0200
@@ -262,8 +262,7 @@
             lineno = lineno + src.count('\n', last_lineno_pos, start)
             last_lineno_pos = start
             # close all interfaces/modules indented at least as much
-            while classstack and \
-                    classstack[-1][1] >= thisindent:
+            while classstack and classstack[-1][1] >= thisindent:
                 if classstack[-1][0] is not None:
                     # record the end line
                     classstack[-1][0].setEndLine(lineno - 1)
@@ -271,8 +270,10 @@
             if classstack:
                 # it's an interface/module method
                 cur_class = classstack[-1][0]
-                if isinstance(cur_class, Interface) or \
-                        isinstance(cur_class, Module):
+                if (
+                    isinstance(cur_class, Interface) or
+                    isinstance(cur_class, Module)
+                ):
                     # it's a method
                     f = Function(None, meth_name,
                                  file, lineno, meth_sig)
@@ -311,8 +312,7 @@
             thisindent = indent
             indent += 1
             # close all interfaces/modules indented at least as much
-            while classstack and \
-                    classstack[-1][1] >= thisindent:
+            while classstack and classstack[-1][1] >= thisindent:
                 if classstack[-1][0] is not None:
                     # record the end line
                     classstack[-1][0].setEndLine(lineno - 1)
@@ -347,8 +347,7 @@
             thisindent = indent
             indent += 1
             # close all interfaces/modules indented at least as much
-            while classstack and \
-                    classstack[-1][1] >= thisindent:
+            while classstack and classstack[-1][1] >= thisindent:
                 if classstack[-1][0] is not None:
                     # record the end line
                     classstack[-1][0].setEndLine(lineno - 1)
@@ -373,9 +372,11 @@
             last_lineno_pos = start
             index = -1
             while index >= -len(classstack):
-                if classstack[index][0] is not None and \
-                   not isinstance(classstack[index][0], Function) and \
-                   not classstack[index][1] >= indent:
+                if (
+                    classstack[index][0] is not None and
+                    not isinstance(classstack[index][0], Function) and
+                    not classstack[index][1] >= indent
+                ):
                     attributes = m.group("AttributeNames").split(',')
                     ro = m.group("AttributeReadonly")
                     for attribute in attributes:

eric ide

mercurial