src/eric7/WebBrowser/Bookmarks/BookmarksImporters/SafariImporter.py

branch
eric7
changeset 10436
f6881d10e995
parent 10050
3750abc45d5e
child 10439
21c28b0f9e41
--- a/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/SafariImporter.py	Fri Dec 22 13:57:47 2023 +0100
+++ b/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/SafariImporter.py	Fri Dec 22 17:24:07 2023 +0100
@@ -22,11 +22,12 @@
     """
     Module function to get information for the given source id.
 
-    @param sourceId id of the browser ("chrome" or "chromium")
-    @return tuple with an icon (QPixmap), readable name (string), name of
-        the default bookmarks file (string), an info text (string),
-        a prompt (string) and the default directory of the bookmarks file
-        (string)
+    @param sourceId id of the browser
+    @type str
+    @return tuple with an icon, readable name, name of the default
+        bookmarks file, an info text, a prompt and the default directory
+        of the bookmarks file
+    @rtype tuple of (QPixmap, str, str, str, str, str)
     @exception ValueError raised to indicate an invalid browser ID
     """
     if sourceId != "safari":
@@ -77,7 +78,8 @@
         """
         Public method to set the path of the bookmarks file or directory.
 
-        @param path bookmarks file or directory (string)
+        @param path bookmarks file or directory
+        @type str
         """
         self.__fileName = path
 
@@ -85,7 +87,8 @@
         """
         Public method to open the bookmarks file.
 
-        @return flag indicating success (boolean)
+        @return flag indicating success
+        @rtype bool
         """
         if not os.path.exists(self.__fileName):
             self._error = True
@@ -99,7 +102,8 @@
         """
         Public method to get the imported bookmarks.
 
-        @return imported bookmarks (BookmarkNode)
+        @return imported bookmarks
+        @rtype BookmarkNode
         """
         from ..BookmarkNode import BookmarkNode
 
@@ -132,8 +136,10 @@
         """
         Private method to process the list of children.
 
-        @param children list of child nodes to be processed (list of dict)
-        @param rootNode node to add the bookmarks to (BookmarkNode)
+        @param children list of child nodes to be processed
+        @type list of dict
+        @param rootNode node to add the bookmarks to
+        @type BookmarkNode
         """
         from ..BookmarkNode import BookmarkNode
 

eric ide

mercurial