Show More
@@ -3225,10 +3225,13 b' class filteredset(abstractsmartset):' | |||||
3225 | return lambda: self._iterfilter(it()) |
|
3225 | return lambda: self._iterfilter(it()) | |
3226 |
|
3226 | |||
3227 | def __nonzero__(self): |
|
3227 | def __nonzero__(self): | |
|
3228 | fast = self.fastasc | |||
|
3229 | if fast is None: | |||
|
3230 | fast = self.fastdesc | |||
|
3231 | if fast is not None: | |||
|
3232 | it = fast() | |||
|
3233 | else: | |||
3228 | it = self |
|
3234 | it = self | |
3229 | fast = self.fastasc or self.fastdesc |
|
|||
3230 | if fast: |
|
|||
3231 | it = fast() |
|
|||
3232 |
|
3235 | |||
3233 | for r in it: |
|
3236 | for r in it: | |
3234 | return True |
|
3237 | return True |
General Comments 0
You need to be logged in to leave comments.
Login now