From 77382d6f5045e658c4c50b164d9416bb1afb587b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 30 Aug 2017 16:33:48 +0200 Subject: [PATCH] [Trivial] Remove now redundant assert --- Lib/multiprocessing/pool.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py index e457f0a576f5f9..b1ee725fac6c25 100644 --- a/Lib/multiprocessing/pool.py +++ b/Lib/multiprocessing/pool.py @@ -313,7 +313,6 @@ def imap(self, func, iterable, chunksize=1): 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(