equal
deleted
inserted
replaced
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__ |