mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
Replace == and != with is and is not for comparisons with None
This commit is contained in:
@@ -464,7 +464,7 @@ class NmapOutputHighlight(object):
|
||||
return True
|
||||
|
||||
def set_enable(self, enable):
|
||||
if enable == False or enable == "0" or enable == None or enable == "":
|
||||
if enable == False or enable == "0" or enable is None or enable == "":
|
||||
config_parser.set(
|
||||
"output_highlight", "enable_highlight", str(False))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user