Fixed an issue in the PEP-8 checker for Python 2. 5_1_x

Sun, 17 Jul 2011 11:22:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 17 Jul 2011 11:22:05 +0200
branch
5_1_x
changeset 1178
2d22b5ce9384
parent 1176
2560e62eb7cc
child 1181
31d20dc43805

Fixed an issue in the PEP-8 checker for Python 2.

Plugins/CheckerPlugins/Pep8/Pep8Checker.py file | annotate | diff | comparison | revisions
diff -r 2560e62eb7cc -r 2d22b5ce9384 Plugins/CheckerPlugins/Pep8/Pep8Checker.py
--- a/Plugins/CheckerPlugins/Pep8/Pep8Checker.py	Sat Jul 16 15:02:06 2011 +0200
+++ b/Plugins/CheckerPlugins/Pep8/Pep8Checker.py	Sun Jul 17 11:22:05 2011 +0200
@@ -10,7 +10,7 @@
 import os
 import optparse
 
-from PyQt4.QtCore import QProcess
+from PyQt4.QtCore import QProcess, QCoreApplication
 
 from . import pep8
 
@@ -138,7 +138,8 @@
         interpreter = Preferences.getDebugger("PythonInterpreter")
         if interpreter == "" or not Utilities.isExecutable(interpreter):
             self.messages.append(filename, "1", "1",
-                self.trUtf8("Python2 interpreter not configured."))
+                QCoreApplication.translate("Pep8Py2Checker",
+                    "Python2 interpreter not configured."))
             return
         
         checker = os.path.join(getConfig('ericDir'), 
@@ -198,4 +199,5 @@
                 index += 1
         else:
             self.messages.append(filename, "1", "1",
-                self.trUtf8("Python2 interpreter did not finish within 15s."))
+                QCoreApplication.translate("Pep8Py2Checker",
+                    "Python2 interpreter did not finish within 15s."))

eric ide

mercurial