--- 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: