[Python-checkins] [Trivial] Remove now redundant assert (#3245)
Antoine Pitrou
webhook-mailer at python.org
Wed Aug 30 10:57:15 EDT 2017
https://github.com/python/cpython/commit/e91c2a5086c8fea64ad33d5f334da13ed0d5648a
commit: e91c2a5086c8fea64ad33d5f334da13ed0d5648a
branch: master
author: Antoine Pitrou <pitrou at free.fr>
committer: GitHub <noreply at github.com>
date: 2017-08-30T16:57:12+02:00
summary:
[Trivial] Remove now redundant assert (#3245)
files:
M Lib/multiprocessing/pool.py
diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py
index e457f0a576f..b1ee725fac6 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(
More information about the Python-checkins
mailing list