mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Fix pep8 errors in all of zenmap
This commit is contained in:
@@ -134,15 +134,16 @@ class TargetList(object):
|
||||
self.target_list_file = False
|
||||
|
||||
#import pdb; pdb.set_trace()
|
||||
if self.target_list_file and \
|
||||
(access(self.target_list_file, R_OK and W_OK) or \
|
||||
access(dirname(self.target_list_file), R_OK and W_OK)):
|
||||
if (self.target_list_file and
|
||||
(access(self.target_list_file, R_OK and W_OK) or
|
||||
access(dirname(self.target_list_file), R_OK and W_OK))):
|
||||
self.using_file = True
|
||||
|
||||
# Recovering saved targets
|
||||
target_file = open(self.target_list_file, "r")
|
||||
self.temp_list = [t for t in target_file.read().split(";") \
|
||||
if t != "" and t != "\n"]
|
||||
self.temp_list = [
|
||||
t for t in target_file.read().split(";")
|
||||
if t != "" and t != "\n"]
|
||||
target_file.close()
|
||||
else:
|
||||
self.using_file = False
|
||||
|
||||
Reference in New Issue
Block a user