From 07b3479029e6df2c599f4cad86726bf08d277661 Mon Sep 17 00:00:00 2001 From: Albert S Date: Thu, 9 Aug 2018 22:59:32 +0200 Subject: [PATCH] fixed: correct usage of generator function --- addindex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addindex b/addindex index 0ab04b0..fae7c24 100755 --- a/addindex +++ b/addindex @@ -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:])