Plugins/PluginTabnanny.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3036
30c81c9e88b8
child 3145
a9de05d4a22f
--- a/Plugins/PluginTabnanny.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/Plugins/PluginTabnanny.py	Sun Nov 03 15:58:22 2013 +0100
@@ -29,7 +29,8 @@
 packageName = "__core__"
 shortDescription = "Show the Tabnanny dialog."
 longDescription = """This plugin implements the Tabnanny dialog.""" \
- """ Tabnanny is used to check Python source files for correct indentations."""
+    """ Tabnanny is used to check Python source files for correct""" \
+    """ indentations."""
 pyqtApi = 2
 # End-Of-Header
 
@@ -152,8 +153,8 @@
         """
         if menuName == "Checks" and self.__projectAct is not None:
             self.__projectAct.setEnabled(
-                e5App().getObject("Project").getProjectLanguage() in \
-                    ["Python3", "Python2", "Python"])
+                e5App().getObject("Project").getProjectLanguage() in
+                ["Python3", "Python2", "Python"])
     
     def __projectBrowserShowMenu(self, menuName, menu):
         """
@@ -189,11 +190,11 @@
         project = e5App().getObject("Project")
         project.saveAllScripts()
         ppath = project.getProjectPath()
-        files = [os.path.join(ppath, file) \
-                 for file in project.pdata["SOURCES"] \
+        files = [os.path.join(ppath, file)
+                 for file in project.pdata["SOURCES"]
                  if file.endswith(
-                    tuple(Preferences.getPython("Python3Extensions")) +
-                    tuple(Preferences.getPython("PythonExtensions")))]
+                     tuple(Preferences.getPython("Python3Extensions")) +
+                     tuple(Preferences.getPython("PythonExtensions")))]
         
         from CheckerPlugins.Tabnanny.TabnannyDialog import TabnannyDialog
         self.__projectTabnannyDialog = TabnannyDialog()

eric ide

mercurial