use string.format instead of old style (%) formatting
This commit is contained in:
@@ -164,7 +164,7 @@ class LedgerAuthDialog(QDialog):
|
||||
if not self.cfg['pair']:
|
||||
self.modes.addItem(_("Mobile - Not paired"))
|
||||
else:
|
||||
self.modes.addItem(_("Mobile - %s") % self.cfg['pair'][1])
|
||||
self.modes.addItem(_("Mobile - {}").format(self.cfg['pair'][1]))
|
||||
self.modes.blockSignals(False)
|
||||
|
||||
def update_dlg(self):
|
||||
|
||||
@@ -236,7 +236,7 @@ class Ledger_KeyStore(Hardware_KeyStore):
|
||||
return address_path[2:]
|
||||
|
||||
def decrypt_message(self, pubkey, message, password):
|
||||
raise RuntimeError(_('Encryption and decryption are currently not supported for %s') % self.device)
|
||||
raise RuntimeError(_('Encryption and decryption are currently not supported for {}').format(self.device))
|
||||
|
||||
def sign_message(self, sequence, message, password):
|
||||
self.signing = True
|
||||
|
||||
Reference in New Issue
Block a user