mercurial/smartset.py
changeset 48946 642e31cb55f0
parent 48875 6000f5b25c9b
child 49284 d44e3c45f0e4
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
    18 
    18 
    19 def _typename(o):
    19 def _typename(o):
    20     return pycompat.sysbytes(type(o).__name__).lstrip(b'_')
    20     return pycompat.sysbytes(type(o).__name__).lstrip(b'_')
    21 
    21 
    22 
    22 
    23 class abstractsmartset(object):
    23 class abstractsmartset:
    24     def __nonzero__(self):
    24     def __nonzero__(self):
    25         """True if the smartset is not empty"""
    25         """True if the smartset is not empty"""
    26         raise NotImplementedError()
    26         raise NotImplementedError()
    27 
    27 
    28     __bool__ = __nonzero__
    28     __bool__ = __nonzero__