Changed the non-existance of a Python2 interpreter in the syntax checker to a warning. 5_1_x

Mon, 04 Jul 2011 08:08:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 04 Jul 2011 08:08:04 +0200
branch
5_1_x
changeset 1168
68d25b6dd44d
parent 1165
70d4137b615c
child 1174
53ae8212ccdb

Changed the non-existance of a Python2 interpreter in the syntax checker to a warning.
(transplanted from 8beb6bacd874e8032252c4625c4c2c6233176713)

Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/Utilities/__init__.py	Sun Jul 03 09:41:01 2011 +0200
+++ b/Utilities/__init__.py	Mon Jul 04 08:08:04 2011 +0200
@@ -1151,10 +1151,11 @@
     """
     interpreter = Preferences.getDebugger("PythonInterpreter")
     if interpreter == "" or not isinpath(interpreter):
-        return (True, file, "1", "", 
+        return (False, "", "", "", "", [(
+            "", "1",
             QCoreApplication.translate("Utilities", 
-                                       "Python2 interpreter not configured."), 
-            [])
+                                       "Python2 interpreter not configured.")
+            )])
     
     syntaxChecker = os.path.join(getConfig('ericDir'), 
                                  "UtilitiesPython2", "Py2SyntaxChecker.py")

eric ide

mercurial