fix: rm unicode() calls in trezor plugin (py3)
This commit is contained in:
parent
ccf1f0f5d1
commit
a2fdb7a396
|
@ -213,7 +213,7 @@ class QtPlugin(QtPluginBase):
|
||||||
vbox.addLayout(hl)
|
vbox.addLayout(hl)
|
||||||
|
|
||||||
def clean_text(widget):
|
def clean_text(widget):
|
||||||
text = unicode(widget.toPlainText()).strip()
|
text = widget.toPlainText().strip()
|
||||||
return ' '.join(text.split())
|
return ' '.join(text.split())
|
||||||
|
|
||||||
if method in [TIM_NEW, TIM_RECOVER]:
|
if method in [TIM_NEW, TIM_RECOVER]:
|
||||||
|
@ -281,7 +281,7 @@ class QtPlugin(QtPluginBase):
|
||||||
item = ' '.join(str(clean_text(text)).split())
|
item = ' '.join(str(clean_text(text)).split())
|
||||||
pin = str(pin.text())
|
pin = str(pin.text())
|
||||||
|
|
||||||
return (item, unicode(name.text()), pin, cb_phrase.isChecked())
|
return (item, name.text(), pin, cb_phrase.isChecked())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@ class SettingsDialog(WindowModalDialog):
|
||||||
label_apply.setEnabled(label_edit.text() != self.features.label)
|
label_apply.setEnabled(label_edit.text() != self.features.label)
|
||||||
|
|
||||||
def rename():
|
def rename():
|
||||||
invoke_client('change_label', unicode(label_edit.text()))
|
invoke_client('change_label', label_edit.text())
|
||||||
|
|
||||||
def toggle_passphrase():
|
def toggle_passphrase():
|
||||||
title = _("Confirm Toggle Passphrase Protection")
|
title = _("Confirm Toggle Passphrase Protection")
|
||||||
|
|
Loading…
Reference in New Issue