WebBrowser/SafeBrowsing/SafeBrowsingManager.py

changeset 6187
2cc7e3629784
parent 6093
5ed91fe54bc9
child 6229
72b40274a3b6
diff -r 83451f10f3eb -r 2cc7e3629784 WebBrowser/SafeBrowsing/SafeBrowsingManager.py
--- a/WebBrowser/SafeBrowsing/SafeBrowsingManager.py	Mon Mar 12 19:49:46 2018 +0100
+++ b/WebBrowser/SafeBrowsing/SafeBrowsingManager.py	Mon Mar 12 19:57:16 2018 +0100
@@ -246,7 +246,7 @@
         
         # step 2: update threat lists
         threatListsForRemove = {}
-        for threatList, clientState in self.__cache.getThreatLists():
+        for threatList, _clientState in self.__cache.getThreatLists():
             threatListsForRemove[repr(threatList)] = threatList
         threatLists = self.__apiClient.getThreatLists()
         maximum = len(threatLists)
@@ -404,7 +404,7 @@
         matchingFullHashes = set()
         isPotentialThreat = False
         # Lookup hash prefixes which match full URL hash
-        for threatList, hashPrefix, negativeCacheExpired in \
+        for _threatList, hashPrefix, negativeCacheExpired in \
                 self.__cache.lookupHashPrefix(cues):
             for fullHash in fullHashes:
                 if fullHash.startswith(hashPrefix):
@@ -486,7 +486,7 @@
         negativeCacheDuration = int(
             fullHashResponses["negativeCacheDuration"].rstrip("s"))
         for prefixValue in hashPrefixes:
-            for threatList, clientState in threatLists:
+            for threatList, _clientState in threatLists:
                 self.__cache.updateHashPrefixExpiration(
                     threatList, prefixValue, negativeCacheDuration)
     

eric ide

mercurial