From: Antoine Pitrou Date: Wed, 30 Aug 2017 14:57:12 +0000 (+0200) Subject: [Trivial] Remove now redundant assert (#3245) X-Git-Tag: v3.7.0a1~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e91c2a5086c8fea64ad33d5f334da13ed0d5648a;p=python [Trivial] Remove now redundant assert (#3245) --- diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py index e457f0a576..b1ee725fac 100644 --- a/Lib/multiprocessing/pool.py +++ b/Lib/multiprocessing/pool.py @@ -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(