Fixed some code style issues.

Sun, 20 Sep 2020 18:32:43 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 20 Sep 2020 18:32:43 +0200
changeset 7706
0c6d32ec64f1
parent 7705
90a9aefd4253
child 7707
6abcf4275d0e

Fixed some code style issues.

eric6/Utilities/ClassBrowsers/idlclbr.py file | annotate | diff | comparison | revisions
eric6/Utilities/ClassBrowsers/protoclbr.py file | annotate | diff | comparison | revisions
eric6/Utilities/ModuleParser.py file | annotate | diff | comparison | revisions
diff -r 90a9aefd4253 -r 0c6d32ec64f1 eric6/Utilities/ClassBrowsers/idlclbr.py
--- a/eric6/Utilities/ClassBrowsers/idlclbr.py	Sun Sep 20 18:32:28 2020 +0200
+++ b/eric6/Utilities/ClassBrowsers/idlclbr.py	Sun Sep 20 18:32:43 2020 +0200
@@ -266,7 +266,7 @@
         # convert lineno to be zero based
         lineno -= 1
         # 1. search for opening brace '{'
-        while lineno < len(lines) and not "{" in lines[lineno]:
+        while lineno < len(lines) and "{" not in lines[lineno]:
             lineno += 1
         depth = lines[lineno].count("{") - lines[lineno].count("}")
         # 2. search for ending line, i.e. matching closing brace '}'
@@ -293,7 +293,7 @@
         """
         # convert lineno to be zero based
         lineno -= 1
-        while lineno < len(lines) and not ";" in lines[lineno]:
+        while lineno < len(lines) and ";" not in lines[lineno]:
             lineno += 1
         if ";" in lines[lineno]:
             # found an end indicator, i.e. ';'
diff -r 90a9aefd4253 -r 0c6d32ec64f1 eric6/Utilities/ClassBrowsers/protoclbr.py
--- a/eric6/Utilities/ClassBrowsers/protoclbr.py	Sun Sep 20 18:32:28 2020 +0200
+++ b/eric6/Utilities/ClassBrowsers/protoclbr.py	Sun Sep 20 18:32:43 2020 +0200
@@ -257,7 +257,7 @@
         # convert lineno to be zero based
         lineno -= 1
         # 1. search for opening brace '{'
-        while lineno < len(lines) and not "{" in lines[lineno]:
+        while lineno < len(lines) and "{" not in lines[lineno]:
             lineno += 1
         depth = lines[lineno].count("{") - lines[lineno].count("}")
         # 2. search for ending line, i.e. matching closing brace '}'
diff -r 90a9aefd4253 -r 0c6d32ec64f1 eric6/Utilities/ModuleParser.py
--- a/eric6/Utilities/ModuleParser.py	Sun Sep 20 18:32:28 2020 +0200
+++ b/eric6/Utilities/ModuleParser.py	Sun Sep 20 18:32:43 2020 +0200
@@ -524,6 +524,7 @@
         
         @param src the source text to be scanned (string)
         """
+        # __IGNORE_WARNING_D234__
         def calculateEndline(lineno, lines, indent):
             """
             Function to calculate the end line of a class or method/function.

eric ide

mercurial