removed the set copy to enable faster iterations

This commit is contained in:
Thomas Nagy 2013-12-15 12:19:01 +01:00
parent 48823f947f
commit 6ad49ae816
1 changed files with 3 additions and 3 deletions

View File

@ -21,10 +21,10 @@ class SetOfTasks(object):
self._owner = owner
def __iter__(self):
tasks = set(self._set) # make a copy
for g in self._owner.run_after_groups:
tasks.update(g)
for task in tasks:
for task in g:
yield task
for task in self._set:
yield task
def add(self, obj):