Merge "forall: use a generator to map the Pool"

This commit is contained in:
Conley Owens 2015-04-08 17:59:56 +00:00 committed by Gerrit Code Review
commit a38769cda8

View File

@ -212,8 +212,8 @@ without iterating through the remaining projects.
config = self.manifest.manifestProject.config
results_it = pool.imap(
DoWorkWrapper,
[[mirror, opt, cmd, shell, cnt, config, self._SerializeProject(p)]
for cnt, p in enumerate(projects)]
([mirror, opt, cmd, shell, cnt, config, self._SerializeProject(p)]
for cnt, p in enumerate(projects))
)
pool.close()
for r in results_it: