edtlib: fix 'is not' -> '!='

We should not be comparing one int to another with 'is' or 'is not'.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-04-13 13:29:39 -07:00 committed by Carles Cufí
commit 760d00913a

View file

@ -1005,7 +1005,7 @@ class Node:
return False if prop_type == "boolean" else None
if prop_type == "boolean":
if prop.type is not Type.EMPTY:
if prop.type != Type.EMPTY:
_err("'{0}' in {1!r} is defined with 'type: boolean' in {2}, "
"but is assigned a value ('{3}') instead of being empty "
"('{0};')".format(name, node, self.binding_path, prop))