UtilitiesPython2/Py2SyntaxChecker.py

changeset 2998
95581102e03e
parent 2409
df3820f08247
child 3031
ed2eaa573ca5
--- a/UtilitiesPython2/Py2SyntaxChecker.py	Wed Oct 09 18:34:30 2013 +0200
+++ b/UtilitiesPython2/Py2SyntaxChecker.py	Wed Oct 09 18:40:07 2013 +0200
@@ -115,7 +115,8 @@
                 continue
             
             _fn, lineno, message = warning.getMessageData()
-            if "__IGNORE_WARNING__" not in extractLineFlags(lines[lineno - 1].strip()):
+            if "__IGNORE_WARNING__" not in \
+                    extractLineFlags(lines[lineno - 1].strip()):
                 strings.extend(["FLAKES_WARNING", _fn, lineno, message])
     except SyntaxError as err:
         if err.text.strip():
@@ -161,7 +162,8 @@
         
         if not syntaxerror and sys.argv[1] in ["-fi", "-fs"]:
             # do pyflakes check
-            warningLines = flakesCheck(filename, codestring, sys.argv[1] == "-fi")
+            warningLines = flakesCheck(
+                filename, codestring, sys.argv[1] == "-fi")
             for warningLine in warningLines:
                 print warningLine
     

eric ide

mercurial