eric7/WebBrowser/Tools/WebBrowserTools.py

branch
eric7
changeset 8556
766e1566cb74
parent 8553
10d31e5ce9e5
child 8881
54e42bc2437a
equal deleted inserted replaced
8555:844c2713bf44 8556:766e1566cb74
44 @type str 44 @type str
45 @return contents of the file 45 @return contents of the file
46 @rtype str 46 @rtype str
47 """ 47 """
48 dataFile = QFile(filename) 48 dataFile = QFile(filename)
49 if filename and dataFile.open(QFile.ReadOnly): 49 if filename and dataFile.open(QIODevice.OpenModeFlag.ReadOnly):
50 contents = dataFile.readAll() 50 contents = dataFile.readAll()
51 dataFile.close() 51 dataFile.close()
52 return contents 52 return contents
53 53
54 return QByteArray() 54 return QByteArray()

eric ide

mercurial