threading.Thread: fix some DeprecationWarnings

"DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead"
This commit is contained in:
SomberNight
2022-05-23 17:52:39 +02:00
parent 0431cd825e
commit 98feff07ad
6 changed files with 6 additions and 6 deletions

View File

@@ -278,7 +278,7 @@ class Plugin(TrustedCoinPlugin):
tos_e.tos_signal.connect(on_result)
tos_e.error_signal.connect(on_error)
t = threading.Thread(target=request_TOS)
t.setDaemon(True)
t.daemon = True
t.start()
email_e.textChanged.connect(set_enabled)
email_e.setFocus(True)

View File

@@ -523,7 +523,7 @@ class TrustedCoinPlugin(BasePlugin):
if self.requesting is False:
self.requesting = True
t = Thread(target=self.request_billing_info, args=(wallet,))
t.setDaemon(True)
t.daemon = True
t.start()
return t