Remove list comprehension

This commit is contained in:
Daniel Goldberg 2019-09-27 16:33:29 +03:00
parent 8c55d2acd4
commit a1d631b39e
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class NetworkScanner(object):
return return
results = pool.map(self.scan_machine, victim_chunk) results = pool.map(self.scan_machine, victim_chunk)
resulting_victims = [x for x in results if x] # filter out dead addresses resulting_victims = filter(lambda x: x is not None, results)
for victim in resulting_victims: for victim in resulting_victims:
LOG.debug("Found potential victim: %r", victim) LOG.debug("Found potential victim: %r", victim)
victims_count += 1 victims_count += 1