소스 검색

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: