From cd9d32c289f8d437ac11c4b22e02dda51da985e9 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Sun, 24 Mar 2019 02:26:21 +0300 Subject: [PATCH] fdi2iclass.py: use "is" to compare with None Fixes LGTM warning "Testing for None should use the 'is' operator." Signed-off-by: Konstantin Kharlamov --- config/fdi2iclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/fdi2iclass.py b/config/fdi2iclass.py index 897444068..36ef3801b 100755 --- a/config/fdi2iclass.py +++ b/config/fdi2iclass.py @@ -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