From 4c786d4e098188912525d45af5d5cbe947adb0de Mon Sep 17 00:00:00 2001 From: Eero Aaltonen Date: Thu, 9 Mar 2023 15:04:46 +0200 Subject: dm-verity-img.bbclass: fix syntax warning Fixes warning ``` SyntaxWarning: "is not" with a literal. Did you mean "!="? ``` Signed-off-by: Eero Aaltonen Signed-off-by: Armin Kuster --- classes/dm-verity-img.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/dm-verity-img.bbclass b/classes/dm-verity-img.bbclass index e5946bc..c57409f 100644 --- a/classes/dm-verity-img.bbclass +++ b/classes/dm-verity-img.bbclass @@ -87,7 +87,7 @@ python __anonymous() { if verity_image != pn: return # This doesn't concern this image - if len(verity_type.split()) is not 1: + if len(verity_type.split()) != 1: bb.fatal('DM_VERITY_IMAGE_TYPE must contain exactly one type') d.appendVar('IMAGE_FSTYPES', ' %s.verity' % verity_type) -- cgit v1.2.3-54-g00ecf