src/eric7/WebBrowser/Bookmarks/XbelReader.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
--- a/src/eric7/WebBrowser/Bookmarks/XbelReader.py	Fri Dec 22 13:57:47 2023 +0100
+++ b/src/eric7/WebBrowser/Bookmarks/XbelReader.py	Fri Dec 22 17:24:07 2023 +0100
@@ -30,8 +30,10 @@
         """
         Public method to resolve undeclared entities.
 
-        @param entity entity to be resolved (string)
-        @return resolved entity (string)
+        @param entity entity to be resolved
+        @type str
+        @return resolved entity
+        @rtype str
         """
         if entity == "nbsp":
             return " "
@@ -56,9 +58,11 @@
         """
         Public method to read an XBEL bookmark file.
 
-        @param fileNameOrDevice name of the file to read (string)
+        @param fileNameOrDevice name of the file to read
+        @type str
             or reference to the device to read (QIODevice)
-        @return reference to the root node (BookmarkNode)
+        @return reference to the root node
+        @rtype BookmarkNode
         """
         if isinstance(fileNameOrDevice, QIODevice):
             self.setDevice(fileNameOrDevice)
@@ -89,7 +93,8 @@
         """
         Private method to read and parse the XBEL file.
 
-        @param node reference to the node to attach to (BookmarkNode)
+        @param node reference to the node to attach to
+        @type BookmarkNode
         """
         if not self.isStartElement() and self.name() != "xbel":
             return
@@ -113,7 +118,8 @@
         """
         Private method to read and parse a folder subtree.
 
-        @param node reference to the node to attach to (BookmarkNode)
+        @param node reference to the node to attach to
+        @type BookmarkNode
         """
         if not self.isStartElement() and self.name() != "folder":
             return
@@ -150,7 +156,7 @@
         Private method to read the title element.
 
         @param node reference to the bookmark node title belongs to
-            (BookmarkNode)
+        @type BookmarkNode
         """
         if not self.isStartElement() and self.name() != "title":
             return
@@ -162,7 +168,7 @@
         Private method to read the desc element.
 
         @param node reference to the bookmark node desc belongs to
-            (BookmarkNode)
+        @type BookmarkNode
         """
         if not self.isStartElement() and self.name() != "desc":
             return
@@ -174,7 +180,7 @@
         Private method to read a separator element.
 
         @param node reference to the bookmark node the separator belongs to
-            (BookmarkNode)
+        @type BookmarkNode
         """
         sep = BookmarkNode(BookmarkNode.Separator, node)
         sep.added = QDateTime.fromString(
@@ -197,7 +203,8 @@
         """
         Private method to read and parse a bookmark subtree.
 
-        @param node reference to the node to attach to (BookmarkNode)
+        @param node reference to the node to attach to
+        @type BookmarkNode
         """
         if not self.isStartElement() and self.name() != "bookmark":
             return

eric ide

mercurial