From 8d639192b6965d9a8867af6a5249e230b164816a Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 16 Sep 2004 02:17:34 +0000 Subject: [PATCH] Prefix the filter and filter_out functions so as to not stomp on the filter() already in python. BKrev: 4148f7beLVbTi2sIk7g3hBbhMv1aTg --- classes/base.oeclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/base.oeclass b/classes/base.oeclass index 4896510567..508dbd5509 100644 --- a/classes/base.oeclass +++ b/classes/base.oeclass @@ -39,7 +39,7 @@ def base_set_filespath(path, d): FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}" -def filter(f, str, d): +def oe_filter(f, str, d): from re import match ret = [] for w in str.split(): @@ -47,7 +47,7 @@ def filter(f, str, d): ret += [ w ] return " ".join(ret) -def filter_out(f, str, d): +def oe_filter_out(f, str, d): from re import match ret = [] for w in str.split(): -- 2.39.5