]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(sptool): operators "is/is not" in sp_mk_gen.py
authorJ-Alves <joao.alves@arm.com>
Fri, 7 Oct 2022 09:02:33 +0000 (10:02 +0100)
committerJ-Alves <joao.alves@arm.com>
Fri, 7 Oct 2022 09:06:08 +0000 (10:06 +0100)
commit1a28f290b8224eb1d78a2476faaedc5154f82208
treeb70236d37a1901cdff5bdd6ffc4157cdac550750
parentc19116dd61068d70808ff71efbe914e50a5346e3
fix(sptool): operators "is/is not" in sp_mk_gen.py

Replace the "is/is not" operator by "==/!=" for literals, to fix the
syntax warnings below:

tools/sptool/sp_mk_generator.py:93: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  return len(sppkg_rule) is not 0

tools/sptool/sp_mk_generator.py:203: SyntaxWarning: "is" with a literal. Did you mean "=="?
  assert(len(uuid_lines) is 1)

Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I10800f6b607942542aa2cbaaecac86b854f6b56a
tools/sptool/sp_mk_generator.py