[7/9] fdi2iclass.py: use "is" to compare with None

Submitted by Konstantin Kharlamov on March 23, 2019, 11:52 p.m.

Details

Message ID 20190323235203.30143-8-Hi-Angel@yandex.ru
State New
Headers show
Series "Fix some of LGTM warnings" ( rev: 2 1 ) in X.org

Not browsing as part of any series.

Commit Message

Konstantin Kharlamov March 23, 2019, 11:52 p.m.
Fixes LGTM warning "Testing for None should use the 'is' operator."

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
---
 config/fdi2iclass.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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