Show More
@@ -3047,15 +3047,13 b' class addset(abstractsmartset):' | |||
|
3047 | 3047 | # try to use our own fast iterator if it exists |
|
3048 | 3048 | self._trysetasclist() |
|
3049 | 3049 | if self._ascending: |
|
3050 |
|
|
|
3050 | attr = 'fastasc' | |
|
3051 | 3051 | else: |
|
3052 |
|
|
|
3052 | attr = 'fastdesc' | |
|
3053 | it = getattr(self, attr) | |
|
3053 | 3054 | if it is not None: |
|
3054 | 3055 | return it() |
|
3055 | 3056 | # maybe half of the component supports fast |
|
3056 | attr = 'fastdesc' | |
|
3057 | if self._ascending: | |
|
3058 | attr = 'fastasc' | |
|
3059 | 3057 | # get iterator for _r1 |
|
3060 | 3058 | iter1 = getattr(self._r1, attr) |
|
3061 | 3059 | if iter1 is None: |
General Comments 0
You need to be logged in to leave comments.
Login now