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:
parent
74f95688d9
commit
760d00913a
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue