##// END OF EJS Templates
addset: add a __nonzero__ method...
Pierre-Yves David -
r22743:eccf9907 default
parent child Browse files
Show More
@@ -2577,6 +2577,9 class _addset(_orderedsetmixin):
2577 def __len__(self):
2577 def __len__(self):
2578 return len(self._list)
2578 return len(self._list)
2579
2579
2580 def __nonzero__(self):
2581 return bool(self._r1 or self._r2)
2582
2580 @util.propertycache
2583 @util.propertycache
2581 def _list(self):
2584 def _list(self):
2582 if not self._genlist:
2585 if not self._genlist:
General Comments 0
You need to be logged in to leave comments. Login now