Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a2b99 commit e91c2a5Copy full SHA for e91c2a5
1 file changed
Lib/multiprocessing/pool.py
@@ -313,7 +313,6 @@ def imap(self, func, iterable, chunksize=1):
313
raise ValueError(
314
"Chunksize must be 1+, not {0:n}".format(
315
chunksize))
316
- assert chunksize > 1
317
task_batches = Pool._get_tasks(func, iterable, chunksize)
318
result = IMapIterator(self._cache)
319
self._taskqueue.put(
0 commit comments