]> granicus.if.org Git - python/commitdiff
[Trivial] Remove now redundant assert (#3245)
authorAntoine Pitrou <pitrou@free.fr>
Wed, 30 Aug 2017 14:57:12 +0000 (16:57 +0200)
committerGitHub <noreply@github.com>
Wed, 30 Aug 2017 14:57:12 +0000 (16:57 +0200)
Lib/multiprocessing/pool.py

index e457f0a576f5f9046e0b72cd7b5d819f71322802..b1ee725fac6c25f1d9fe4dd24259b494ccc37b01 100644 (file)
@@ -313,7 +313,6 @@ class Pool(object):
                 raise ValueError(
                     "Chunksize must be 1+, not {0:n}".format(
                         chunksize))
-            assert chunksize > 1
             task_batches = Pool._get_tasks(func, iterable, chunksize)
             result = IMapIterator(self._cache)
             self._taskqueue.put(