mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[Trivial] Remove now redundant assert (#3245)
This commit is contained in:
parent
d9a2b99ac4
commit
e91c2a5086
1 changed files with 0 additions and 1 deletions
|
@ -313,7 +313,6 @@ class Pool(object):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Chunksize must be 1+, not {0:n}".format(
|
"Chunksize must be 1+, not {0:n}".format(
|
||||||
chunksize))
|
chunksize))
|
||||||
assert chunksize > 1
|
|
||||||
task_batches = Pool._get_tasks(func, iterable, chunksize)
|
task_batches = Pool._get_tasks(func, iterable, chunksize)
|
||||||
result = IMapIterator(self._cache)
|
result = IMapIterator(self._cache)
|
||||||
self._taskqueue.put(
|
self._taskqueue.put(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue