diff -r c712d09cc839 -r f6881d10e995 src/eric7/WebBrowser/Bookmarks/BookmarksImporters/ChromeImporter.py --- a/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/ChromeImporter.py Fri Dec 22 13:57:47 2023 +0100 +++ b/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/ChromeImporter.py Fri Dec 22 17:24:07 2023 +0100 @@ -22,10 +22,11 @@ """ Module function to get information for the given source id. - @param sourceId id of the browser ("chrome", "chromium" or "edge") + @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 + @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 """ @@ -225,7 +226,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 @@ -233,7 +235,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 @@ -247,7 +250,8 @@ """ Public method to get the imported bookmarks. - @return imported bookmarks (BookmarkNode) + @return imported bookmarks + @rtype BookmarkNode """ from ..BookmarkNode import BookmarkNode @@ -279,8 +283,10 @@ """ Private method to process the bookmark roots. - @param data dictionary with the bookmarks data (dict) - @param rootNode node to add the bookmarks to (BookmarkNode) + @param data dictionary with the bookmarks data + @type dict + @param rootNode node to add the bookmarks to + @type BookmarkNode """ for key, node in data.items(): if "type" in node: @@ -301,8 +307,10 @@ """ Private method to process a bookmarks folder. - @param data dictionary with the bookmarks data (dict) - @param rootNode node to add the bookmarks to (BookmarkNode) + @param data dictionary with the bookmarks data + @type dict + @param rootNode node to add the bookmarks to + @type BookmarkNode """ from ..BookmarkNode import BookmarkNode @@ -318,8 +326,10 @@ """ Private method to process a bookmarks node. - @param data dictionary with the bookmarks data (dict) - @param rootNode node to add the bookmarks to (BookmarkNode) + @param data dictionary with the bookmarks data + @type dict + @param rootNode node to add the bookmarks to + @type BookmarkNode """ from ..BookmarkNode import BookmarkNode