equal
deleted
inserted
replaced
580 """search for the given selector or selector instance in the selectors |
580 """search for the given selector or selector instance in the selectors |
581 tree. Return it of None if not found |
581 tree. Return it of None if not found |
582 """ |
582 """ |
583 if self is selector: |
583 if self is selector: |
584 return self |
584 return self |
585 if isinstance(selector, type) and instance(self, selector): |
585 if isinstance(selector, type) and isinstance(self, selector): |
586 return self |
586 return self |
587 return None |
587 return None |
588 |
588 |
589 def __and__(self, other): |
589 def __and__(self, other): |
590 return AndSelector(self, other) |
590 return AndSelector(self, other) |