PluginManager/PluginManager.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
--- a/PluginManager/PluginManager.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/PluginManager/PluginManager.py	Fri Nov 01 15:48:48 2013 +0100
@@ -161,7 +161,8 @@
                     f = open(fname, "w")
                     f.close()
                 except IOError:
-                    return (False,
+                    return (
+                        False,
                         self.trUtf8("Could not create a package for {0}.")\
                             .format(self.__develPluginFile))
         
@@ -195,7 +196,8 @@
             del self.pluginDirs["global"]
         
         if not os.path.exists(self.pluginDirs["eric5"]):
-            return (False,
+            return (
+                False,
                 self.trUtf8(
                     "The internal plugin directory <b>{0}</b>"
                     " does not exits.").format(self.pluginDirs["eric5"]))
@@ -554,13 +556,16 @@
                     module.eric5PluginModuleName, className)
             pluginClass = getattr(module, className)
             if not hasattr(pluginClass, "__init__"):
-                raise PluginClassFormatError(module.eric5PluginModuleName,
+                raise PluginClassFormatError(
+                    module.eric5PluginModuleName,
                     className, "__init__")
             if not hasattr(pluginClass, "activate"):
-                raise PluginClassFormatError(module.eric5PluginModuleName,
+                raise PluginClassFormatError(
+                    module.eric5PluginModuleName,
                     className, "activate")
             if not hasattr(pluginClass, "deactivate"):
-                raise PluginClassFormatError(module.eric5PluginModuleName,
+                raise PluginClassFormatError(
+                    module.eric5PluginModuleName,
                     className, "deactivate")
             return True
         except PluginModuleFormatError as e:
@@ -994,7 +999,8 @@
                     try:
                         os.mkdir(downloadDir, 0o755)
                     except (OSError, IOError) as err:
-                        E5MessageBox.critical(self.__ui,
+                        E5MessageBox.critical(
+                            self.__ui,
                             self.trUtf8("Plugin Manager Error"),
                             self.trUtf8(
                                 """<p>The plugin download directory"""

eric ide

mercurial