src/eric7/WebBrowser/Bookmarks/NsHtmlReader.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
42 42
43 def read(self, fileNameOrDevice): 43 def read(self, fileNameOrDevice):
44 """ 44 """
45 Public method to read a Netscape HTML bookmark file. 45 Public method to read a Netscape HTML bookmark file.
46 46
47 @param fileNameOrDevice name of the file to read (string) 47 @param fileNameOrDevice name of the file to read
48 @type str
48 or reference to the device to read (QIODevice) 49 or reference to the device to read (QIODevice)
49 @return reference to the root node (BookmarkNode) 50 @return reference to the root node
51 @rtype BookmarkNode
50 """ 52 """
51 if isinstance(fileNameOrDevice, QIODevice): 53 if isinstance(fileNameOrDevice, QIODevice):
52 dev = fileNameOrDevice 54 dev = fileNameOrDevice
53 else: 55 else:
54 f = QFile(fileNameOrDevice) 56 f = QFile(fileNameOrDevice)

eric ide

mercurial