Total Complexity | 4 |
Total Lines | 13 |
Duplicated Lines | 0 % |
1 | __author__ = "Jon Reid" |
||
19 | class BaseQuasiDictionaryIterator(six.Iterator): |
||
20 | def __init__(self): |
||
21 | self.index = 1 |
||
22 | |||
23 | def __iter__(self): |
||
24 | return self |
||
25 | |||
26 | def __next__(self): |
||
27 | if self.index >= 3: |
||
28 | raise StopIteration |
||
29 | result = self.indexToResult() |
||
30 | self.index += 1 |
||
31 | return result |
||
32 | |||
47 |