fixed: correct usage of generator function
Tá an tiomantas seo le fáil i:
tuismitheoir
4de5aa6d74
tiomantas
07b3479029
2
addindex
2
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:])
|
||||
|
||||
|
Á lódáil...
x
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir