From: Chris Larson Date: Thu, 16 Sep 2004 02:17:34 +0000 (+0000) Subject: Prefix the filter and filter_out functions so as to not stomp on the filter() already... X-Git-Tag: Release-2010-05/1~17143 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d639192b6965d9a8867af6a5249e230b164816a;p=openembedded.git Prefix the filter and filter_out functions so as to not stomp on the filter() already in python. BKrev: 4148f7beLVbTi2sIk7g3hBbhMv1aTg --- 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():