use string.format instead of old style (%) formatting
This commit is contained in:
@@ -421,7 +421,7 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore):
|
||||
|
||||
|
||||
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):
|
||||
|
||||
@@ -39,7 +39,7 @@ class Plugin(DigitalBitboxPlugin, QtPluginBase):
|
||||
}
|
||||
self.comserver_post_notification(verify_request_payload)
|
||||
|
||||
menu.addAction(_("Show on %s") % self.device, show_address)
|
||||
menu.addAction(_("Show on {}").format(self.device), show_address)
|
||||
|
||||
|
||||
class DigitalBitbox_Handler(QtHandlerBase):
|
||||
|
||||
Reference in New Issue
Block a user