eric6/WebBrowser/SafeBrowsing/SafeBrowsingCache.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 7022
a5f9f601b6ac
child 7229
53054eb5b15a
--- a/eric6/WebBrowser/SafeBrowsing/SafeBrowsingCache.py	Sat Aug 31 12:29:57 2019 +0200
+++ b/eric6/WebBrowser/SafeBrowsing/SafeBrowsingCache.py	Sat Aug 31 12:58:11 2019 +0200
@@ -22,7 +22,6 @@
     QCoreApplication, QEventLoop
 from PyQt5.QtSql import QSql, QSqlDatabase, QSqlQuery
 
-from .SafeBrowsingUtilities import toHex
 from .SafeBrowsingThreatList import ThreatList
 
 
@@ -593,7 +592,7 @@
                     query.prepare(queryStr)
                     query.addBindValue(QByteArray(prefix),
                                        QSql.In | QSql.Binary)
-                    query.addBindValue(toHex(prefix[:4]))
+                    query.addBindValue(prefix[:4].hex())
                     query.addBindValue(threatList.threatType)
                     query.addBindValue(threatList.platformType)
                     query.addBindValue(threatList.threatEntryType)

eric ide

mercurial