Skip to content

Commit

Permalink
fix a python 2 to 3 compat issue which was missed earlier (#374)
Browse files Browse the repository at this point in the history
* fix a python 2 to 3 compat issue which was missed earlier

* fix a python 2 to 3 compat issue which was missed earlier
  • Loading branch information
auvipy authored Aug 16, 2022
1 parent dd19a09 commit 8bf0085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions billiard/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ def _iterinactive(self):
yield worker

def _worker_active(self, worker):
for job in values(self._cache):
for job in self._cache.values():
if worker.pid in job.worker_pids():
return True
return False
Expand Down Expand Up @@ -1625,7 +1625,7 @@ def join(self):
debug('pool join complete')

def restart(self):
for e in values(self._poolctrl):
for e in self._poolctrl.values():
e.set()

@staticmethod
Expand Down

0 comments on commit 8bf0085

Please sign in to comment.