infobyte / faraday-client

GTK client of FaradaySEC
Other
6 stars 3 forks source link

Thread method isAlive compatible with python 3.9 #7

Open dmknght opened 3 years ago

dmknght commented 3 years ago

Description

On Debian testing based distro, thee default python has been upgraded to python3.9 which removed isAlive(). It makes application failed to stop (crashes after click on exit)

What I Did

Fix method is edit isAlive() to is_alive() at https://github.com/infobyte/faraday-client/blob/master/faraday_client/model/application.py#L141 It worked well with python3.9. It should be compatible with python2 (doc: https://docs.python.org/2.7/library/threading.html) and any older version of python3 (doc: https://docs.python.org/3.5/library/threading.html)