From a10a412e768bc8174af36b61bd36e4b5dd851613 Mon Sep 17 00:00:00 2001 From: L1ghtn1ng Date: Sat, 21 Aug 2021 23:54:10 +0100 Subject: [PATCH] fix flake8 issue in hacker target --- theHarvester/discovery/hackertarget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theHarvester/discovery/hackertarget.py b/theHarvester/discovery/hackertarget.py index e50eb473..224d08bf 100644 --- a/theHarvester/discovery/hackertarget.py +++ b/theHarvester/discovery/hackertarget.py @@ -5,6 +5,7 @@ class SearchHackerTarget: """ Class uses the HackerTarget api to gather subdomains and ips """ + def __init__(self, word): self.word = word self.total_results = "" @@ -24,4 +25,4 @@ async def process(self, proxy=False): await self.do_search() async def get_hostnames(self) -> list: - return [result for result in self.total_results.splitlines() if not 'No PTR records found' in result] + return [result for result in self.total_results.splitlines() if 'No PTR records found' not in result]