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:
Konstantin Kharlamov 2019-03-24 02:26:21 +03:00 committed by Alan Coopersmith
parent 0011f4ad17
commit cd9d32c289

View File

@ -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