mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +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:
parent
2274fa2461
commit
f29a494d2b
2 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ class ScanChooser(HIGVBox):
|
|||
|
||||
def show_scan(self, widget):
|
||||
nmap_output = self.get_nmap_output()
|
||||
if nmap_output != "":
|
||||
if nmap_output:
|
||||
self.txt_scan_result.get_buffer().set_text(nmap_output)
|
||||
|
||||
def normalize_output(self, output):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue