src/eric7/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9507
1f39839655ea
--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py	Sun Nov 06 11:22:39 2022 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py	Mon Nov 07 17:19:58 2022 +0100
@@ -8,6 +8,7 @@
 """
 
 import ast
+import builtins
 import contextlib
 import multiprocessing
 import queue
@@ -232,8 +233,6 @@
             errors), the message, a list with arguments for the message)
     @rtype dict
     """
-    import builtins
-
     try:
         codestring = normalizeCode(codestring)
 
@@ -249,7 +248,7 @@
 
         if filename.endswith(".ptl"):
             try:
-                import quixote.ptl_compile
+                import quixote.ptl_compile  # __IGNORE_WARNING_I10__
             except ImportError:
                 return [{"error": (filename, 0, 0, "", "Quixote plugin not found.")}]
             template = quixote.ptl_compile.Template(codestring, filename)

eric ide

mercurial