158b07c
From cf7a74217558b19aff7c21a724878bcc15dc4e38 Mon Sep 17 00:00:00 2001
158b07c
From: Zdenek Dohnal <zdohnal@redhat.com>
158b07c
Date: Mon, 5 Oct 2020 09:26:40 +0200
158b07c
Subject: [PATCH] isAlive() is removed, use is_alive()
158b07c
158b07c
---
158b07c
 asyncipp.py | 2 +-
158b07c
 timedops.py | 4 ++--
158b07c
 2 files changed, 3 insertions(+), 3 deletions(-)
158b07c
158b07c
diff --git a/asyncipp.py b/asyncipp.py
158b07c
index 5bc160e0..61cd7213 100644
158b07c
--- a/asyncipp.py
158b07c
+++ b/asyncipp.py
158b07c
@@ -269,7 +269,7 @@ class IPPConnection:
158b07c
         for binding in self.bindings:
158b07c
             delattr (self, binding)
158b07c
 
158b07c
-        if self.thread.isAlive ():
158b07c
+        if self.thread.is_alive ():
158b07c
             debugprint ("Stopping worker thread")
158b07c
             self.thread.stop ()
158b07c
             GLib.timeout_add_seconds (1, self._reap_thread)
158b07c
diff --git a/timedops.py b/timedops.py
158b07c
index 8a8741c8..111d575f 100644
158b07c
--- a/timedops.py
158b07c
+++ b/timedops.py
158b07c
@@ -157,7 +157,7 @@ class OperationThread(threading.Thread):
158b07c
             self.exception = e
158b07c
 
158b07c
     def collect_result (self):
158b07c
-        if self.isAlive ():
158b07c
+        if self.is_alive ():
158b07c
             # We've been canceled.
158b07c
             raise OperationCanceled()
158b07c
 
158b07c
@@ -212,7 +212,7 @@ class TimedOperation(Timed):
158b07c
         return self.thread.collect_result ()
158b07c
 
158b07c
     def _check_thread (self):
158b07c
-        if self.thread.isAlive ():
158b07c
+        if self.thread.is_alive ():
158b07c
             # Thread still running.
158b07c
             return True
158b07c
 
158b07c
-- 
158b07c
2.26.2
158b07c