threading.Thread: fix some DeprecationWarnings
"DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead"
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user