summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>2019-03-24 02:26:21 +0300
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-02 18:06:30 +0000
commitcd9d32c289f8d437ac11c4b22e02dda51da985e9 (patch)
treeb6d96cc56bac3d7ee340faa8a2558267ad54ce41
parent0011f4ad173deb284d3001929439c67ad45aa6f2 (diff)
downloadxserver-cd9d32c289f8d437ac11c4b22e02dda51da985e9.tar.gz
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>
-rwxr-xr-xconfig/fdi2iclass.py2
1 files changed, 1 insertions, 1 deletions
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