UtilitiesPython2/Py2SyntaxChecker.py

changeset 2409
df3820f08247
parent 2302
f29e9405c851
child 2998
95581102e03e
--- a/UtilitiesPython2/Py2SyntaxChecker.py	Mon Feb 11 14:08:08 2013 +0100
+++ b/UtilitiesPython2/Py2SyntaxChecker.py	Mon Feb 11 18:13:10 2013 +0100
@@ -14,9 +14,6 @@
 
 from Tools import readEncodedFile, normalizeCode, extractLineFlags
 
-from py2flakes.checker import Checker
-from py2flakes.messages import ImportStarUsed
-
 
 def compile(file, codestring):
     """
@@ -104,6 +101,9 @@
     @return list of strings containing the warnings
         (marker, file name, line number, message)
     """
+    from py2flakes.checker import Checker
+    from py2flakes.messages import ImportStarUsed
+    
     strings = []
     lines = codestring.splitlines()
     try:

eric ide

mercurial