1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00

Spellcheck on all Python files

This commit is contained in:
dmiller
2014-02-20 21:22:30 +00:00
parent 1575c63d7d
commit a72faf3906
21 changed files with 75 additions and 75 deletions

View File

@@ -130,17 +130,17 @@ class RecentScans(object):
self.temp_list = []
try:
self.recents_scans_file = Path.recent_scans
self.recent_scans_file = Path.recent_scans
except:
self.recents_scans_file = False
self.recent_scans_file = False
if self.recents_scans_file and \
(access(self.recents_scans_file, R_OK and W_OK) or \
access(dirname(self.recents_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.recents_scans_file, "r")
recent_file = open(self.recent_scans_file, "r")
self.temp_list = [t for t in recent_file.read().split(";") \
if t != "" and t != "\n"]
recent_file.close()
@@ -149,7 +149,7 @@ class RecentScans(object):
def save(self):
if self.using_file:
recent_file = open(self.recents_scans_file, "w")
recent_file = open(self.recent_scans_file, "w")
recent_file.write(";".join(self.temp_list))
recent_file.close()