WebBrowser/SafeBrowsing/SafeBrowsingManager.py

changeset 6230
77a1b22c8a1f
parent 6229
72b40274a3b6
child 6233
a64b986abb54
equal deleted inserted replaced
6229:72b40274a3b6 6230:77a1b22c8a1f
371 @return list of threat lists the URL was found in 371 @return list of threat lists the URL was found in
372 @rtype list of ThreatList 372 @rtype list of ThreatList
373 @exception ValueError raised for an invalid URL 373 @exception ValueError raised for an invalid URL
374 """ 374 """
375 if self.isEnabled(): 375 if self.isEnabled():
376 # TODO: add branch for the lookup API
376 if isinstance(url, QUrl): 377 if isinstance(url, QUrl):
377 urlStr = url.toString().strip() 378 urlStr = url.toString().strip()
378 else: 379 else:
379 urlStr = url.strip() 380 urlStr = url.strip()
380 381

eric ide

mercurial