fixed: correct usage of generator function

Este commit está contenido en:
Albert S. 2018-08-09 22:59:32 +02:00
padre 4de5aa6d74
commit 07b3479029
Se han modificado 1 ficheros con 1 adiciones y 1 borrados

Ver fichero

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