From 36a1b5ec679b77fec0814d1f12ebcf0fab84e53c Mon Sep 17 00:00:00 2001 From: Jeremy Carbaugh Date: Tue, 30 Jun 2009 15:50:40 -0400 Subject: [PATCH] add extra recipe argument to YieldFilter __call__ method --- saucebrush/filters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/saucebrush/filters.py b/saucebrush/filters.py index ab7051e..3df98bd 100644 --- a/saucebrush/filters.py +++ b/saucebrush/filters.py @@ -55,7 +55,8 @@ class YieldFilter(Filter): def __init__(self): super(YieldFilter, self).__init__() - def __call__(self, source): + def __call__(self, recipe, source): + self._recipe = recipe for record in source: for result in self.process_record(record): yield result