Skip to contentSkip to conversation

dm-verity-img.bbclass: fix syntax warning

PATCH New [email protected] 1 participant 1 message Mar 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm-verity-img.bbclass: fix syntax warning

From: Eero Aaltonen <[email protected]>

Fixes warning

```
SyntaxWarning: "is not" with a literal. Did you mean "!="?
```
---
 classes/dm-verity-img.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
classes/dm-verity-img.bbclass +1 -1
index e5946bc..c57409f 100644
@@ -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)
Signature · 1 line
2.25.1