1
0

Remove usages of deprecated apply() builtin

This commit is contained in:
suut
2017-08-01 05:22:18 +02:00
parent b95b21b2f2
commit bc4fcfbebd
7 changed files with 11 additions and 11 deletions

View File

@@ -841,7 +841,7 @@ class ElectrumWindow(App):
if self.wallet.has_password():
self.password_dialog(msg, f, args)
else:
apply(f, args + (None,))
f(*args, None)
def delete_wallet(self):
from uix.dialogs.question import Question
@@ -918,7 +918,7 @@ class ElectrumWindow(App):
def password_dialog(self, msg, f, args):
def callback(pw):
Clock.schedule_once(lambda x: apply(f, args + (pw,)), 0.1)
Clock.schedule_once(lambda _: f(*args, pw), 0.1)
if self._password_dialog is None:
from uix.dialogs.password_dialog import PasswordDialog
self._password_dialog = PasswordDialog()