Merge pull request #727 from w1kl4s/master
Fix Python 3.9 compatibility
This commit is contained in:
commit
68bd6f8ef8
3 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ class Module(core.input.Object):
|
|||
|
||||
def update_wrapper(self):
|
||||
if self.background == True:
|
||||
if self.__thread and self.__thread.isAlive():
|
||||
if self.__thread and self.__thread.is_alive():
|
||||
return # skip this update interval
|
||||
self.__thread = threading.Thread(target=self.internal_update, args=(True,))
|
||||
self.__thread.start()
|
||||
|
|
|
@ -65,7 +65,7 @@ class Module(core.module.Module):
|
|||
)
|
||||
|
||||
def update(self):
|
||||
if self.__thread and self.__thread.isAlive():
|
||||
if self.__thread and self.__thread.is_alive():
|
||||
return
|
||||
|
||||
self.__thread = threading.Thread(target=get_apt_check_info, args=(self,))
|
||||
|
|
|
@ -101,7 +101,7 @@ class Module(core.module.Module):
|
|||
return val
|
||||
|
||||
def update(self):
|
||||
if self.__thread is not None and self.__thread.isAlive():
|
||||
if self.__thread is not None and self.__thread.is_alive():
|
||||
return
|
||||
self.__thread = threading.Thread(target=get_redshift_value, args=(self,))
|
||||
self.__thread.start()
|
||||
|
|
Loading…
Reference in a new issue