fix: rm unicode() calls in trezor plugin (py3)

This commit is contained in:
SomberNight 2017-10-16 01:40:13 +02:00
parent ccf1f0f5d1
commit a2fdb7a396
1 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ class QtPlugin(QtPluginBase):
vbox.addLayout(hl)
def clean_text(widget):
text = unicode(widget.toPlainText()).strip()
text = widget.toPlainText().strip()
return ' '.join(text.split())
if method in [TIM_NEW, TIM_RECOVER]:
@ -281,7 +281,7 @@ class QtPlugin(QtPluginBase):
item = ' '.join(str(clean_text(text)).split())
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)
def rename():
invoke_client('change_label', unicode(label_edit.text()))
invoke_client('change_label', label_edit.text())
def toggle_passphrase():
title = _("Confirm Toggle Passphrase Protection")