Skip to content

Commit ba727ce

Browse files
eltimenvasily-v-ryabov
authored andcommitted
Fix crash on Python>=3.9 caused by removed Thread.isAlive method
1 parent 2fbdf49 commit ba727ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pywinauto/controls/uiawrapper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def watchdog():
553553
thread.daemon = True
554554
thread.start()
555555
thread.join(2.)
556-
if thread.isAlive():
556+
if thread.is_alive():
557557
warnings.warn('Timeout for InvokePattern.Invoke() call was exceeded', RuntimeWarning)
558558
watchdog_thread = threading.Thread(target=watchdog)
559559
watchdog_thread.start()

0 commit comments

Comments
 (0)