mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +00:00
Replace == and != with is and is not for comparisons with None
This commit is contained in:
@@ -263,7 +263,7 @@ class Graph:
|
||||
b.add_edge(edge)
|
||||
|
||||
# then add new weight value
|
||||
if weight != None:
|
||||
if weight is not None:
|
||||
|
||||
edge.add_weight(weight)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user