Merge "forall: use a generator to map the Pool"
diff --git a/subcmds/forall.py b/subcmds/forall.py
index 7771ec1..88b23fb 100644
--- a/subcmds/forall.py
+++ b/subcmds/forall.py
@@ -212,8 +212,8 @@
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: