Show More
@@ -2667,12 +2667,13 b' class _generatorset(object):' | |||||
2667 | # iteration. |
|
2667 | # iteration. | |
2668 | i = 0 |
|
2668 | i = 0 | |
2669 | genlist = self._genlist |
|
2669 | genlist = self._genlist | |
2670 |
|
|
2670 | nextrev = self._consumegen().next | |
|
2671 | _len = len # cache global lookup | |||
2671 | while True: |
|
2672 | while True: | |
2672 | if i < len(genlist): |
|
2673 | if i < _len(genlist): | |
2673 | yield genlist[i] |
|
2674 | yield genlist[i] | |
2674 | else: |
|
2675 | else: | |
2675 |
yield |
|
2676 | yield nextrev() | |
2676 | i += 1 |
|
2677 | i += 1 | |
2677 |
|
2678 | |||
2678 | def _consumegen(self): |
|
2679 | def _consumegen(self): |
General Comments 0
You need to be logged in to leave comments.
Login now