Plugins/PluginSyntaxChecker.py

changeset 3022
57179e4cdadd
parent 3006
66b769f458c9
child 3034
7ce719013078
child 3058
0a02c433f52d
--- a/Plugins/PluginSyntaxChecker.py	Mon Oct 14 20:08:19 2013 +0200
+++ b/Plugins/PluginSyntaxChecker.py	Tue Oct 15 18:29:32 2013 +0200
@@ -71,9 +71,10 @@
         """
         menu = e5App().getObject("Project").getMenu("Checks")
         if menu:
-            self.__projectAct = E5Action(self.trUtf8('Check Syntax'),
-                    self.trUtf8('&Syntax...'), 0, 0,
-                    self, 'project_check_syntax')
+            self.__projectAct = E5Action(
+                self.trUtf8('Check Syntax'),
+                self.trUtf8('&Syntax...'), 0, 0,
+                self, 'project_check_syntax')
             self.__projectAct.setStatusTip(
                 self.trUtf8('Check syntax.'))
             self.__projectAct.setWhatsThis(self.trUtf8(
@@ -84,9 +85,10 @@
             e5App().getObject("Project").addE5Actions([self.__projectAct])
             menu.addAction(self.__projectAct)
         
-        self.__editorAct = E5Action(self.trUtf8('Check Syntax'),
-                self.trUtf8('&Syntax...'), 0, 0,
-                self, "")
+        self.__editorAct = E5Action(
+            self.trUtf8('Check Syntax'),
+            self.trUtf8('&Syntax...'), 0, 0,
+            self, "")
         self.__editorAct.setWhatsThis(self.trUtf8(
                 """<b>Check Syntax...</b>"""
                 """<p>This checks Python files for syntax errors.</p>"""
@@ -183,8 +185,8 @@
         project.saveAllScripts()
         ppath = project.getProjectPath()
         files = [os.path.join(ppath, file) \
-            for file in project.pdata["SOURCES"] \
-                if file.endswith(
+                 for file in project.pdata["SOURCES"] \
+                 if file.endswith(
                     tuple(Preferences.getPython("Python3Extensions")) +
                     tuple(Preferences.getPython("PythonExtensions")))]
         

eric ide

mercurial