PluginDocumentationSets.py

branch
eric7
changeset 67
4f7d5d158bc5
parent 63
ef499ea8b820
child 76
119228f1ac21
--- a/PluginDocumentationSets.py	Wed Apr 13 11:56:03 2022 +0200
+++ b/PluginDocumentationSets.py	Wed Sep 21 16:49:59 2022 +0200
@@ -36,23 +36,24 @@
 def helpFiles():
     """
     Module function to return the documentation sets provided by this plug-in.
-    
+
     @return dictionary with documentation set type as key and list of
         documentation files as values
     @rtype dict (key: str, value: list of str)
     """
     documentationSets = {}
-    documentationSetsDir = os.path.join(os.path.dirname(__file__),
-                                        "DocumentationSets")
+    documentationSetsDir = os.path.join(os.path.dirname(__file__), "DocumentationSets")
     if os.path.isdir(documentationSetsDir):
         documentationTypes = [
-            d for d in os.listdir(documentationSetsDir)
+            d
+            for d in os.listdir(documentationSetsDir)
             if os.path.isdir(os.path.join(documentationSetsDir, d))
         ]
         for documentationType in documentationTypes:
             documentationSets[documentationType] = glob.glob(
-                os.path.join(documentationSetsDir, documentationType, "*.qch"))
-    
+                os.path.join(documentationSetsDir, documentationType, "*.qch")
+            )
+
     return documentationSets
 
 
@@ -60,26 +61,27 @@
     """
     Class implementing the QtHelp documentation provider plug-in.
     """
+
     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)
         """
         global error
-        error = ""     # clear previous error
-        
+        error = ""  # clear previous error
+
         return None, True
-    
+
     def deactivate(self):
         """
         Public method to deactivate this plugin.

eric ide

mercurial