Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 3036
30c81c9e88b8
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
child 3160
209a07d7e401
diff -r 36e9f388958b -r 30c81c9e88b8 Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sat Oct 19 14:05:26 2013 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sat Oct 19 15:15:50 2013 +0200
@@ -52,8 +52,7 @@
         interpreter = Preferences.getDebugger("PythonInterpreter")
         if interpreter == "" or not Utilities.isExecutable(interpreter):
             self.errors.append(
-                (filename, 1, 1,
-                 QCoreApplication.translate(
+                (filename, 1, 1, QCoreApplication.translate(
                     "CodeStyleCheckerPy2",
                     "Python2 interpreter not configured.")))
             return
@@ -86,8 +85,8 @@
         if finished:
             output = \
                 str(proc.readAllStandardOutput(),
-                        Preferences.getSystem("IOEncoding"),
-                        'replace').splitlines()
+                    Preferences.getSystem("IOEncoding"),
+                    'replace').splitlines()
             if output[0] == "ERROR":
                 self.errors.append((filename, 1, 1, output[2]))
                 return
@@ -126,7 +125,6 @@
                 index += 1
         else:
             self.errors.append(
-                (filename, 1, 1,
-                 QCoreApplication.translate(
+                (filename, 1, 1, QCoreApplication.translate(
                     "CodeStyleCheckerPy2",
                     "Python2 interpreter did not finish within 15s.")))

eric ide

mercurial