appobject.py
branchtls-sprint
changeset 732 45c3414ac002
parent 726 88a74f590986
child 733 6df41435ecb7
equal deleted inserted replaced
731:ac4a94e50b60 732:45c3414ac002
   102     @classproperty
   102     @classproperty
   103     @obsolete('use __select__ and & or | operators')
   103     @obsolete('use __select__ and & or | operators')
   104     def __selectors__(cls):
   104     def __selectors__(cls):
   105         selector = cls.__select__
   105         selector = cls.__select__
   106         if isinstance(selector, AndSelector):
   106         if isinstance(selector, AndSelector):
   107             return selector.selectors
   107             return tuple(selector.selectors)
   108         if not isinstance(selector, tuple):
   108         if not isinstance(selector, tuple):
   109             selector = (selector,)
   109             selector = (selector,)
   110         return selector
   110         return selector
   111     
   111     
   112     @classmethod
   112     @classmethod