]> https://gitweb.dealii.org/ - dealii.git/commitdiff
some pylint complaints 8144/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 12 Jun 2019 09:31:38 +0000 (11:31 +0200)
committerTimo Heister <timo.heister@gmail.com>
Wed, 12 Jun 2019 09:31:38 +0000 (11:31 +0200)
contrib/utilities/checkdoxygen.py

index e365a6ff7776727c5923d0530d217445e2f981f8..fb4a946c71978d8e741c8c0589c2900c65fd982a 100755 (executable)
@@ -18,10 +18,10 @@ def check_doxygen_groups(lines):
         elif "@}" in l:
             count = count -1
         if count < 0:
-            sys.exit("Error in file '%s' in line %d"%(args[0],lineno))
+            sys.exit("Error in file '%s' in line %d"%(args[0], lineno))
         lineno = lineno + 1
 
-    if (count != 0):
+    if count != 0:
         sys.exit("Error: missing closing braces in file '%s'"%(args[0]))
 
     return
@@ -36,21 +36,21 @@ def check_empty_lines_in_tables(lines):
         elif "</table>" in l:
             count = count -1
         if count < 0:
-            sys.exit("Error in file '%s' in line %d"%(args[0],lineno))
+            sys.exit("Error in file '%s' in line %d"%(args[0], lineno))
 
-        if count==1:
-            if l.strip()=="":
-                sys.exit("Error: empty line inside html table in file '%s' in line %d"%(args[0],lineno))
+        if count == 1:
+            if l.strip() == "":
+                sys.exit("Error: empty line inside html table in file '%s' in line %d"%(args[0], lineno))
 
         lineno = lineno + 1
 
-    if (count != 0):
+    if count != 0:
         sys.exit("Error: mismatched html table tags in file '%s'"%(args[0]))
 
     return
 
 
-args=sys.argv
+args = sys.argv
 args.pop(0)
 
 f = open(args[0])

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.