##// END OF EJS Templates
revset: added __sub__ mehtod to _addset...
Lucas Moscovicz -
r20731:88aae538 default
parent child Browse files
Show More
@@ -2419,6 +2419,12 b' class _addset(object):'
2419 return orderedlazyset(self, filterfunc, ascending=self._ascending)
2419 return orderedlazyset(self, filterfunc, ascending=self._ascending)
2420 return lazyset(self, filterfunc)
2420 return lazyset(self, filterfunc)
2421
2421
2422 def __sub__(self, other):
2423 filterfunc = lambda r: r not in other
2424 if self._ascending is not None:
2425 return orderedlazyset(self, filterfunc, ascending=self._ascending)
2426 return lazyset(self, filterfunc)
2427
2422 def _iterator(self):
2428 def _iterator(self):
2423 """Iterate over both collections without repeating elements
2429 """Iterate over both collections without repeating elements
2424
2430
General Comments 0
You need to be logged in to leave comments. Login now