mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Modifying r32985 based on Henri Doreau's comment
"For sequences, (strings, lists, tuples), use the fact that empty sequences are false." PEP-0008 says[1]. [1] http://legacy.python.org/dev/peps/pep-0008/
This commit is contained in:
@@ -202,7 +202,7 @@ class ScanChooser(HIGVBox):
|
|||||||
|
|
||||||
def show_scan(self, widget):
|
def show_scan(self, widget):
|
||||||
nmap_output = self.get_nmap_output()
|
nmap_output = self.get_nmap_output()
|
||||||
if nmap_output != "":
|
if nmap_output:
|
||||||
self.txt_scan_result.get_buffer().set_text(nmap_output)
|
self.txt_scan_result.get_buffer().set_text(nmap_output)
|
||||||
|
|
||||||
def normalize_output(self, output):
|
def normalize_output(self, output):
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ class ScanNmapOutputPage(HIGVBox):
|
|||||||
if entry.parsed is not None:
|
if entry.parsed is not None:
|
||||||
self.nmap_output.set_command_execution(None)
|
self.nmap_output.set_command_execution(None)
|
||||||
nmap_output = entry.parsed.get_nmap_output()
|
nmap_output = entry.parsed.get_nmap_output()
|
||||||
if nmap_output != "":
|
if nmap_output:
|
||||||
self.nmap_output.show_nmap_output(nmap_output)
|
self.nmap_output.show_nmap_output(nmap_output)
|
||||||
self.details_button.set_sensitive(True)
|
self.details_button.set_sensitive(True)
|
||||||
elif entry.command is not None:
|
elif entry.command is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user