Skip to content

Instantly share code, notes, and snippets.

@delafont
delafont / apply.py
Created July 23, 2015 08:04
new apply
def apply_all_on_one(self, variant):
passed = True
for f in self.list():
passed = f.condition(variant)
if not passed:
break
return passed
def apply(self, variants):
"""Apply all filters.