eric6/Utilities/ClassBrowsers/protoclbr.py

changeset 8217
385f60c94548
parent 7923
91e843545d9a
child 8228
772103b14c18
--- a/eric6/Utilities/ClassBrowsers/protoclbr.py	Sat Apr 10 17:54:58 2021 +0200
+++ b/eric6/Utilities/ClassBrowsers/protoclbr.py	Sat Apr 10 18:31:17 2021 +0200
@@ -299,7 +299,7 @@
             meth_return = meth_return and meth_return.replace('\\\n', '') or ''
             meth_return = _commentsub('', meth_return)
             meth_return = _normalize(' ', meth_return)
-            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:
@@ -333,7 +333,7 @@
             # we found a message definition
             thisindent = indent
             indent += 1
-            lineno = lineno + src.count('\n', last_lineno_pos, start)
+            lineno += src.count('\n', last_lineno_pos, start)
             last_lineno_pos = start
             message_name = m.group("MessageName")
             # close all messages/services indented at least as much
@@ -357,7 +357,7 @@
             # close all messages/services 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
             enum_name = m.group("EnumName")
             # remember this Enum
@@ -378,7 +378,7 @@
             # close all messages/services 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
             service_name = m.group("ServiceName")
             # remember this Service

eric ide

mercurial