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

@@ -133,15 +133,16 @@ class RecentScans(object):
except:
self.recent_scans_file = False
if self.recent_scans_file and \
(access(self.recent_scans_file, R_OK and W_OK) or \
access(dirname(self.recent_scans_file), R_OK and W_OK)):
if (self.recent_scans_file and
(access(self.recent_scans_file, R_OK and W_OK) or
access(dirname(self.recent_scans_file), R_OK and W_OK))):
self.using_file = True
# Recovering saved targets
recent_file = open(self.recent_scans_file, "r")
self.temp_list = [t for t in recent_file.read().split(";") \
if t != "" and t != "\n"]
self.temp_list = [
t for t in recent_file.read().split(";")
if t != "" and t != "\n"]
recent_file.close()
else:
self.using_file = False