fdi2iclass.py: use "is" to compare with None
Fixes LGTM warning "Testing for None should use the 'is' operator." Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
parent
0011f4ad17
commit
cd9d32c289
|
@ -150,7 +150,7 @@ def parse_all_matches(node):
|
|||
|
||||
# walk up to a parent match node
|
||||
node = node.parentNode
|
||||
if node == None or not is_match_node(node):
|
||||
if node is None or not is_match_node(node):
|
||||
break
|
||||
|
||||
# leave if there other options at this level
|
||||
|
|
Loading…
Reference in New Issue