##// END OF EJS Templates
revset: added __and__ method to _addset...
Lucas Moscovicz -
r20730:180d47e1 default
parent child Browse files
Show More
@@ -2413,6 +2413,12 b' class _addset(object):'
2413 if self._ascending:
2413 if self._ascending:
2414 self.reverse()
2414 self.reverse()
2415
2415
2416 def __and__(self, other):
2417 filterfunc = other.__contains__
2418 if self._ascending is not None:
2419 return orderedlazyset(self, filterfunc, ascending=self._ascending)
2420 return lazyset(self, filterfunc)
2421
2416 def _iterator(self):
2422 def _iterator(self):
2417 """Iterate over both collections without repeating elements
2423 """Iterate over both collections without repeating elements
2418
2424
General Comments 0
You need to be logged in to leave comments. Login now