--- a/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/XbelImporter.py Tue Nov 08 16:23:26 2022 +0100 +++ b/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/XbelImporter.py Tue Nov 08 16:57:46 2022 +0100 @@ -100,8 +100,10 @@ """ Constructor - @param sourceId source ID (string) - @param parent reference to the parent object (QObject) + @param sourceId source ID (defaults to "") + @type str (optional) + @param parent reference to the parent object (defaults to None) + @type QObject (optional) """ super().__init__(sourceId, parent) @@ -161,3 +163,17 @@ QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) ) return importRootNode + + +def createImporter(sourceId="", parent=None): + """ + Constructor + + @param sourceId source ID (defaults to "") + @type str (optional) + @param parent reference to the parent object (defaults to None) + @type QObject (optional) + @return reference to the instantiated importer object + @rtype XbelImporter + """ + return XbelImporter(sourceId=sourceId, parent=parent)