Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use is_alive in favour of isAlive for Python 3.9 compatibility. #225

Merged
merged 1 commit into from
Apr 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pulsar/managers/queued.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def shutdown(self, timeout=None):
self.work_queue.put((STOP_SIGNAL, None))
for worker in self.work_threads:
worker.join(timeout)
if worker.isAlive():
if worker.is_alive():
log.warn("Failed to stop worker thread [%s]" % worker)

def run_next(self):
Expand Down
2 changes: 1 addition & 1 deletion pulsar/managers/stateful.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def __init__(self, stateful_manager):
def shutdown(self, timeout=None):
self.active = False
self.thread.join(timeout)
if self.thread.isAlive():
if self.thread.is_alive():
log.warn("Failed to join monitor thread [%s]" % self.thread)

def _run(self):
Expand Down
2 changes: 1 addition & 1 deletion pulsar/messaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __nonzero__(self):
def join(self, timeout=None):
for t in self.threads:
t.join(timeout)
if t.isAlive():
if t.is_alive():
log.warn("Failed to join thread [%s]." % t)


Expand Down