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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 17 Jul 2011 11:22:05 +0200
changeset 1180
566742748d48
parent 1179
7661ab683f7b
child 1183
4285148ea20f

Fixed an issue in the PEP-8 checker for Python 2.
(transplanted from 2d22b5ce93841bc397d9b6d50f17b71cf563cb17)

Plugins/CheckerPlugins/Pep8/Pep8Checker.py file | annotate | diff | comparison | revisions
--- a/Plugins/CheckerPlugins/Pep8/Pep8Checker.py	Sun Jul 17 18:10:54 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
 
@@ -139,7 +139,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'),
@@ -199,4 +200,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