Show More
@@ -2672,9 +2672,11 b' class _generatorset(object):' | |||||
2672 | i += 1 |
|
2672 | i += 1 | |
2673 |
|
2673 | |||
2674 | def _consumegen(self): |
|
2674 | def _consumegen(self): | |
|
2675 | cache = self._cache | |||
|
2676 | genlist = self._genlist.append | |||
2675 | for item in self._gen: |
|
2677 | for item in self._gen: | |
2676 |
|
|
2678 | cache[item] = True | |
2677 |
|
|
2679 | genlist(item) | |
2678 | yield item |
|
2680 | yield item | |
2679 | self._finished = True |
|
2681 | self._finished = True | |
2680 |
|
2682 |
General Comments 0
You need to be logged in to leave comments.
Login now