eric6/Utilities/ClassBrowsers/idlclbr.py

changeset 8217
385f60c94548
parent 8205
4a0f1f896341
child 8228
772103b14c18
--- a/eric6/Utilities/ClassBrowsers/idlclbr.py	Sat Apr 10 17:54:58 2021 +0200
+++ b/eric6/Utilities/ClassBrowsers/idlclbr.py	Sat Apr 10 18:31:17 2021 +0200
@@ -326,7 +326,7 @@
             meth_sig = meth_sig and meth_sig.replace('\\\n', '') or ''
             meth_sig = _commentsub('', meth_sig)
             meth_sig = _normalize(' ', meth_sig)
-            lineno = lineno + src.count('\n', last_lineno_pos, start)
+            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:
@@ -371,7 +371,7 @@
             # close all interfaces/modules indented at least as much
             while classstack and classstack[-1][1] >= thisindent:
                 del classstack[-1]
-            lineno = lineno + src.count('\n', last_lineno_pos, start)
+            lineno += src.count('\n', last_lineno_pos, start)
             last_lineno_pos = start
             class_name = m.group("InterfaceName")
             inherit = m.group("InterfaceSupers")
@@ -398,7 +398,7 @@
             # close all interfaces/modules indented at least as much
             while classstack and classstack[-1][1] >= thisindent:
                 del classstack[-1]
-            lineno = lineno + src.count('\n', last_lineno_pos, start)
+            lineno += src.count('\n', last_lineno_pos, start)
             last_lineno_pos = start
             module_name = m.group("ModuleName")
             # remember this module
@@ -410,7 +410,7 @@
             classstack.append((cur_class, thisindent))
 
         elif m.start("Attribute") >= 0:
-            lineno = lineno + src.count('\n', last_lineno_pos, start)
+            lineno += src.count('\n', last_lineno_pos, start)
             last_lineno_pos = start
             index = -1
             while index >= -len(classstack):

eric ide

mercurial