fix(spm): silence warning in sp_mk_generator

Silence warning from sp_mk_generator that 'is not' operator
is not meant for integers. This replaces the referred instance
with '!='.

Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I0d31ad65466dbeafebbfc929e506c3e290913aca
This commit is contained in:
J-Alves 2024-01-17 09:15:28 +00:00
parent 23d6774ab5
commit 6a3225e227

View file

@ -137,7 +137,7 @@ def get_load_address(sp_layout, sp, args :dict):
with open(get_sp_manifest_full_path(sp_layout[sp], args), "r") as pm_f:
load_address_lines = [l for l in pm_f if 'load-address' in l]
if len(load_address_lines) is not 1:
if len(load_address_lines) != 1:
return None
load_address_parsed = re.search("(0x[0-9a-f]+)", load_address_lines[0])