class TagFilter(object): def __init__(self, tags): self.tag_expression = TagExpression(tags) def eval(self, tags, names, ranges): return self.tag_expression.eval([tag.name for tag in set(tags)]) def filter_table_body_rows(self, rows): return rows
def __init__(self, tags): self.tag_expression = TagExpression(tags)