瀏覽代碼

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

Conley Owens 10 年之前
父節點
當前提交
a38769cda8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      subcmds/forall.py

+ 2 - 2
subcmds/forall.py

@@ -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: