diff mbox series

[03/13] lib/oe/utils: simplify str_filter*() signatures

Message ID 20261116-oe-lib-docstrings-v1-3-0c894f6a1064@bootlin.com
State New
Headers show
Series Improve or add oe.* library docstrings | expand

Commit Message

Antonin Godard Nov. 16, 2026, 4:09 p.m. UTC
In the str_filter*() functions, the datastore (d) argument is never
used. Remove it.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 meta/lib/oe/utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 66f6323add..5d4f4056f7 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -132,11 +132,11 @@  def prune_suffix(var, suffixes, d):
 
     return var
 
-def str_filter(f, str, d):
+def str_filter(f, str):
     from re import match
     return " ".join([x for x in str.split() if match(f, x, 0)])
 
-def str_filter_out(f, str, d):
+def str_filter_out(f, str):
     from re import match
     return " ".join([x for x in str.split() if not match(f, x, 0)])