spanset: use base implementation for __add__

This commit is contained in:
Pierre-Yves David 2014-10-03 00:31:33 -05:00
parent 215016c505
commit a14781af28

View File

@ -2919,14 +2919,6 @@ class _spanset(_orderedsetmixin, abstractsmartset):
return True
return False
def __add__(self, x):
kwargs = {}
if self.isascending() and x.isascending():
kwargs['ascending'] = True
if self.isdescending() and x.isdescending():
kwargs['ascending'] = False
return _addset(self, x, **kwargs)
def __len__(self):
if not self._hiddenrevs:
return abs(self._end - self._start)