1
0
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:
dmiller
2015-12-11 23:11:47 +00:00
parent 24f5f35d3e
commit 3567d72b17
28 changed files with 282 additions and 275 deletions

View File

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