diff options
-rwxr-xr-x | effitool | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -314,12 +314,6 @@ class ContainsCond(SearchCond): return pattern in value -class NotContainsCond(SearchCond): - - def op(self, value, pattern): - return pattern not in value - - class RegexCond(SearchCond): def op(self, value, pattern): @@ -473,10 +467,8 @@ class Tool: matches = {} for rid, m in members.items(): - for c in conds: - if c.matches(m): - matches[rid] = m - break + if all(c.matches(m) for c in conds): + matches[rid] = m self._format_json(matches, sys.stdout) def _format_json(self, obj, output): |