You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Dont use equality operators with None singleton in python files
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user