mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 04:09:01 +00:00
Replace == and != with is and is not for comparisons with None
This commit is contained in:
@@ -171,7 +171,7 @@ class HostsViewer(BWMainWindow):
|
||||
def change_notebook(self, node):
|
||||
"""
|
||||
"""
|
||||
if self.__view != None:
|
||||
if self.__view is not None:
|
||||
self.__view.destroy()
|
||||
|
||||
if node is not None:
|
||||
|
||||
Reference in New Issue
Block a user