PluginApis.py

branch
eric7
changeset 52
c8ea815f673d
parent 50
e5ebd8be9569
child 53
f69d7f9ab8e4
--- a/PluginApis.py	Mon Jun 20 09:19:16 2022 +0200
+++ b/PluginApis.py	Wed Sep 21 17:01:33 2022 +0200
@@ -35,16 +35,16 @@
 def apiFiles(language):
     """
     Module function to return the API files made available by this plugin.
-    
+
     @param language language to get APIs for (string)
     @return list of API filenames (list of string)
     """
     if language in ["Python3", "Python"]:
         apisDir = os.path.join(os.path.dirname(__file__), "APIs", "Python")
-        apis = glob.glob(os.path.join(apisDir, '*.api'))
-        
+        apis = glob.glob(os.path.join(apisDir, "*.api"))
+
         apisDir = os.path.join(os.path.dirname(__file__), "APIs", "Python3")
-        apis.extend(glob.glob(os.path.join(apisDir, '*.api')))
+        apis.extend(glob.glob(os.path.join(apisDir, "*.api")))
         return apis
     else:
         return []
@@ -54,23 +54,24 @@
     """
     Class implementing the Django project plugin.
     """
+
     def __init__(self, ui):
         """
         Constructor
-        
+
         @param ui reference to the user interface object (UI.UserInterface)
         """
         super().__init__(ui)
         self.__ui = ui
-    
+
     def activate(self):
         """
         Public method to activate this plugin.
-        
+
         @return tuple of None and activation status (boolean)
         """
         return None, True
-    
+
     def deactivate(self):
         """
         Public method to deactivate this plugin.

eric ide

mercurial