]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/core/syntax_checker.py
xnu-3789.21.4.tar.gz
[apple/xnu.git] / tools / lldbmacros / core / syntax_checker.py
index f9a7142b56f717974217841def1447153e2d7161..02ec68eb5762ad27060f13559a3488e50702dd4e 100755 (executable)
@@ -43,7 +43,7 @@ if __name__ == "__main__":
         try:
             compile_result = py_compile.compile(fname, cfile="/dev/null", doraise=True)
         except py_compile.PyCompileError as exc:
-            print str(exc)
+            print >>sys.stderr, str(exc)
             print >>sys.stderr, "Error: Compilation failed. Please fix the errors and try again."
             sys.exit(1)
         print "Success: Checked %s. No syntax errors found." % fname