Skip to content

Commit

Permalink
Fix crash on Python>=3.9 caused by removed Thread.isAlive method
Browse files Browse the repository at this point in the history
  • Loading branch information
eltimen authored and vasily-v-ryabov committed Nov 30, 2022
1 parent 2fbdf49 commit ba727ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywinauto/controls/uiawrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def watchdog():
thread.daemon = True
thread.start()
thread.join(2.)
if thread.isAlive():
if thread.is_alive():
warnings.warn('Timeout for InvokePattern.Invoke() call was exceeded', RuntimeWarning)
watchdog_thread = threading.Thread(target=watchdog)
watchdog_thread.start()
Expand Down

0 comments on commit ba727ce

Please sign in to comment.