python: remove API deprecated in Python 3.10

This commit is contained in:
link2xt
2021-12-18 17:47:08 +00:00
parent 91f02ad553
commit 61af0c9ac4
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class FFIEventLogger:
@account_hookimpl
def ac_log_line(self, message):
t = threading.currentThread()
t = threading.current_thread()
tname = getattr(t, "name", t)
if tname == "MainThread":
tname = "MAIN"
@@ -193,7 +193,7 @@ class EventThread(threading.Thread):
def __init__(self, account) -> None:
self.account = account
super(EventThread, self).__init__(name="events")
self.setDaemon(True)
self.daemon = True
self._marked_for_shutdown = False
self.start()