vregistry.py
branchtls-sprint
changeset 721 f76e89b52553
parent 719 2a610efe21ce
child 724 1ecba333cfb0
equal deleted inserted replaced
720:36b64f712ec9 721:f76e89b52553
   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)