Преглед изворни кода

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: