##// END OF EJS Templates
revset: added set method to addset to duck type generatorset...
Lucas Moscovicz -
r20711:b95490cf default
parent child Browse files
Show More
@@ -2340,6 +2340,9 b' class _addset(object):'
2340 def __contains__(self, x):
2340 def __contains__(self, x):
2341 return x in self._r1 or x in self._r2
2341 return x in self._r1 or x in self._r2
2342
2342
2343 def set(self):
2344 return self
2345
2343 class _generatorset(object):
2346 class _generatorset(object):
2344 """Wrap a generator for lazy iteration
2347 """Wrap a generator for lazy iteration
2345
2348
General Comments 0
You need to be logged in to leave comments. Login now