Show More
@@ -2243,9 +2243,13 b' class spanset(object):' | |||||
2243 | self._hiddenrevs) |
|
2243 | self._hiddenrevs) | |
2244 |
|
2244 | |||
2245 | def __and__(self, x): |
|
2245 | def __and__(self, x): | |
|
2246 | if isinstance(x, baseset): | |||
|
2247 | x = x.set() | |||
2246 | return lazyset(self, lambda r: r in x) |
|
2248 | return lazyset(self, lambda r: r in x) | |
2247 |
|
2249 | |||
2248 | def __sub__(self, x): |
|
2250 | def __sub__(self, x): | |
|
2251 | if isinstance(x, baseset): | |||
|
2252 | x = x.set() | |||
2249 | return lazyset(self, lambda r: r not in x) |
|
2253 | return lazyset(self, lambda r: r not in x) | |
2250 |
|
2254 | |||
2251 | def __add__(self, x): |
|
2255 | def __add__(self, x): |
General Comments 0
You need to be logged in to leave comments.
Login now