def match(self, item):
        """ Return True if filter matches item.
        """
        val = getattr(item, self._name) or False
        return bool(val) is self._value
def match ( self , item ) : val = getattr ( item , self . _name ) or False return bool ( val ) is self . _value
Return True if filter matches item.