Plugins/PluginEricapi.py

changeset 945
8cd4d08fa9f6
parent 908
d00447340771
child 1131
7781e396c903
--- a/Plugins/PluginEricapi.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Plugins/PluginEricapi.py	Fri Mar 11 16:51:57 2011 +0100
@@ -39,6 +39,7 @@
 
 error = ""
 
+
 def exeDisplayData():
     """
     Public method to support the display of some executable info.
@@ -48,22 +49,23 @@
     """
     exe = 'eric5_api'
     if Utilities.isWindowsPlatform():
-        exe = os.path.join(getConfig("bindir"), exe +'.bat')
+        exe = os.path.join(getConfig("bindir"), exe + '.bat')
     
     data = {
-        "programEntry"      : True, 
-        "header"            : QApplication.translate("EricapiPlugin",
-                                "Eric5 API File Generator"), 
-        "exe"               : exe, 
-        "versionCommand"    : '--version', 
-        "versionStartsWith" : 'eric5_', 
-        "versionPosition"   : -3, 
-        "version"           : "", 
-        "versionCleanup"    : None, 
+        "programEntry": True,
+        "header": QApplication.translate("EricapiPlugin",
+                                "Eric5 API File Generator"),
+        "exe": exe,
+        "versionCommand": '--version',
+        "versionStartsWith": 'eric5_',
+        "versionPosition": -3,
+        "version": "",
+        "versionCleanup": None,
     }
     
     return data
 
+
 class EricapiPlugin(QObject):
     """
     Class implementing the Ericapi plugin.
@@ -123,7 +125,7 @@
     
     def __projectShowMenu(self, menuName, menu):
         """
-        Private slot called, when the the project menu or a submenu is 
+        Private slot called, when the the project menu or a submenu is
         about to be shown.
         
         @param menuName name of the menu to be shown (string)
@@ -140,9 +142,9 @@
         Private slot to perform the eric5_api api generation.
         """
         eolTranslation = {
-            '\r' : 'cr', 
-            '\n' : 'lf', 
-            '\r\n' : 'crlf', 
+            '\r': 'cr',
+            '\n': 'lf',
+            '\r\n': 'crlf',
         }
         project = e5App().getObject("Project")
         parms = project.getData('DOCUMENTATIONPARMS', "ERIC4API")

eric ide

mercurial