--- a/eric7/WebBrowser/Tools/WebBrowserTools.py Sun Aug 29 17:48:26 2021 +0200 +++ b/eric7/WebBrowser/Tools/WebBrowserTools.py Sun Aug 29 17:48:44 2021 +0200 @@ -46,7 +46,7 @@ @rtype str """ dataFile = QFile(filename) - if filename and dataFile.open(QFile.ReadOnly): + if filename and dataFile.open(QIODevice.OpenModeFlag.ReadOnly): contents = dataFile.readAll() dataFile.close() return contents