Skip to content

Commit 4fbdf6e

Browse files
DEP: replace the deprecated Thread.isAlive() with .is_alive()
1 parent c84b072 commit 4fbdf6e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/diffpy/pdfgui/control/fitting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def isThreadRunning(self):
553553
554554
return: True if running, False otherwise
555555
"""
556-
return self.thread is not None and self.thread.isAlive()
556+
return self.thread is not None and self.thread.is_alive()
557557

558558
def join(self):
559559
"""wait for current fitting to finish"""

src/diffpy/pdfgui/control/pdfguicontrol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def exit(self):
159159
"""exit when program finished
160160
"""
161161
self.close()
162-
if self.queueManager.isAlive():
162+
if self.queueManager.is_alive():
163163
self.queueManager.running = False
164164

165165
def newFitting(self, name, position=None):

0 commit comments

Comments
 (0)