From 59f9bb20e5fcf43f3f8bdfb78d926192c01681b4 Mon Sep 17 00:00:00 2001 From: Narek Maloyan Date: Mon, 23 Nov 2020 18:32:44 +0300 Subject: [PATCH] Update istarmap.py Python 3.8 compatibility fix --- istarmap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/istarmap.py b/istarmap.py index 8a55bdb..1edc7b1 100644 --- a/istarmap.py +++ b/istarmap.py @@ -14,7 +14,7 @@ def istarmap(self, func, iterable, chunksize=1): chunksize)) task_batches = mpp.Pool._get_tasks(func, iterable, chunksize) - result = mpp.IMapIterator(self._cache) + result = mpp.IMapIterator(self) self._taskqueue.put( ( self._guarded_task_generation(result._job, @@ -25,4 +25,4 @@ def istarmap(self, func, iterable, chunksize=1): return (item for chunk in result for item in chunk) -mpp.Pool.istarmap = istarmap \ No newline at end of file +mpp.Pool.istarmap = istarmap