diff mbox series

utils.contains,_any: Fix description of return value

Message ID 63bcd3253c3f7cb372c4e9a85f86473ffa1633f7.1780929593.git.joerg.sommer@navimatix.de
State Accepted, archived
Commit 26978d55eab18278cc6a527072e8015cfbced9de
Headers show
Series utils.contains,_any: Fix description of return value | expand

Commit Message

Jörg Sommer June 8, 2026, 2:39 p.m. UTC
From: Jörg Sommer <joerg.sommer@navimatix.de>

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
---
 lib/bb/utils.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index f03c950af..181082c95 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -1291,8 +1291,8 @@  def contains(variable, checkvalues, truevalue, falsevalue, d):
        not a subset of variable.
     -  ``d``: the data store.
 
-    Returns ``True`` if the variable contains the values specified, ``False``
-    otherwise.
+    Returns ``truevalue`` if the variable contains the values specified,
+    ``falsevalue`` otherwise.
     """
 
     val = d.getVar(variable)
@@ -1321,8 +1321,8 @@  def contains_any(variable, checkvalues, truevalue, falsevalue, d):
        not a subset of variable.
     -  ``d``: the data store.
 
-    Returns ``True`` if the variable contains any of the values specified,
-    ``False`` otherwise.
+    Returns ``truevalue`` if the variable contains any of the values specified,
+    ``falsevalue`` otherwise.
     """
     val = d.getVar(variable)
     if not val: