Skip to content

Commit

Permalink
fixed bug with next() method in imap and imap_unordered generators;
Browse files Browse the repository at this point in the history
  • Loading branch information
padu committed Jul 22, 2022
1 parent 446348e commit 762b790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parallelbar/parallelbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _do_parallel(func, pool_type, tasks, n_cpu, chunk_size, core_progress,
iter_result = method(target, tasks, chunksize=chunk_size)
while 1:
try:
result.append(iter_result.next())
result.append(next(iter_result))
except StopIteration:
break
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='parallelbar',
version='0.2.8',
version='0.2.9',
packages=find_packages(),
author='Dubovik Pavel',
author_email='geometryk@gmail.com',
Expand Down

0 comments on commit 762b790

Please sign in to comment.