Merge "forall: use a generator to map the Pool"
This commit is contained in:
commit
a38769cda8
1 changed files with 2 additions and 2 deletions
|
@ -212,8 +212,8 @@ without iterating through the remaining projects.
|
||||||
config = self.manifest.manifestProject.config
|
config = self.manifest.manifestProject.config
|
||||||
results_it = pool.imap(
|
results_it = pool.imap(
|
||||||
DoWorkWrapper,
|
DoWorkWrapper,
|
||||||
[[mirror, opt, cmd, shell, cnt, config, self._SerializeProject(p)]
|
([mirror, opt, cmd, shell, cnt, config, self._SerializeProject(p)]
|
||||||
for cnt, p in enumerate(projects)]
|
for cnt, p in enumerate(projects))
|
||||||
)
|
)
|
||||||
pool.close()
|
pool.close()
|
||||||
for r in results_it:
|
for r in results_it:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue