From fa7cdb2c9f2c1118e08a181ec3382d575bb9035d Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 29 Dec 2019 15:57:31 +0000 Subject: [PATCH] Remove unneeded delete (var goes out of scope). #1834 --- zenmap/zenmapGUI/ScanInterface.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zenmap/zenmapGUI/ScanInterface.py b/zenmap/zenmapGUI/ScanInterface.py index 9648c5842..3b2b688b5 100644 --- a/zenmap/zenmapGUI/ScanInterface.py +++ b/zenmap/zenmapGUI/ScanInterface.py @@ -512,8 +512,6 @@ class ScanInterface(HIGVBox): parsed.profile_name = profile_name parsed.nmap_command = command.command - del(profile) - def kill_all_scans(self): """Kill all running scans.""" for scan in self.jobs: @@ -586,7 +584,8 @@ class ScanInterface(HIGVBox): except Exception, e: warn_dialog = HIGAlertDialog( message_format=_("Error executing command"), - secondary_text=unicode(e, errors='replace'), type=gtk.MESSAGE_ERROR) + secondary_text=unicode(e, errors='replace'), + type=gtk.MESSAGE_ERROR) warn_dialog.run() warn_dialog.destroy() return