fixed: correct usage of generator function

This commit is contained in:
Albert S. 2018-08-09 22:59:32 +02:00
父節點 4de5aa6d74
當前提交 07b3479029
共有 1 個文件被更改,包括 1 次插入1 次删除

查看文件

@ -163,7 +163,7 @@ if __name__ == '__main__':
with Pool(processes=4,initializer=init) as pool:
if len(sys.argv) < 2:
pool.map(insert, yieldstdinfiles)
pool.map(insert, (l for l in yieldstdinfiles()))
else:
pool.map(insert, sys.argv[1:])