Dont use equality operators with None singleton in python files

This commit is contained in:
lupoDharkael 2018-10-27 01:18:15 +02:00
parent 970b58148f
commit edcca5f7ad
9 changed files with 15 additions and 15 deletions

View file

@ -82,7 +82,7 @@ def find_signal_descr(old_class, name):
def find_constant_descr(old_class, name):
if (old_class == None):
if (old_class is None):
return None
constants = old_class.find("constants")
if(constants != None and len(list(constants)) > 0):