--- 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)