Skip to content

Commit cf7a742

Browse files
committed
isAlive() is removed, use is_alive()
1 parent 63eccd5 commit cf7a742

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

asyncipp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def destroy (self):
269269
for binding in self.bindings:
270270
delattr (self, binding)
271271

272-
if self.thread.isAlive ():
272+
if self.thread.is_alive ():
273273
debugprint ("Stopping worker thread")
274274
self.thread.stop ()
275275
GLib.timeout_add_seconds (1, self._reap_thread)

timedops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def run (self):
157157
self.exception = e
158158

159159
def collect_result (self):
160-
if self.isAlive ():
160+
if self.is_alive ():
161161
# We've been canceled.
162162
raise OperationCanceled()
163163

@@ -212,7 +212,7 @@ def run (self):
212212
return self.thread.collect_result ()
213213

214214
def _check_thread (self):
215-
if self.thread.isAlive ():
215+
if self.thread.is_alive ():
216216
# Thread still running.
217217
return True
218218

0 commit comments

Comments
 (0)