1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

Replace == and != with is and is not for comparisons with None

This commit is contained in:
dmiller
2014-01-09 16:47:20 +00:00
parent 96141b431e
commit 51b143353b
18 changed files with 61 additions and 64 deletions

View File

@@ -518,7 +518,7 @@ class ParserBasics(object):
self.nmap['scaninfo'] = info
def get_services_scanned(self):
if self._services_scanned == None:
if self._services_scanned is None:
return self._services_scanned
services = []
@@ -553,7 +553,7 @@ class ParserBasics(object):
return protocols
def get_num_services(self):
if self._num_services == None:
if self._num_services is None:
return self._num_services
num = 0