ui: use {} as default config

master
Roman Zeyde 6 years ago
parent d0497b0137
commit ceae65aa5a
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

@ -30,9 +30,11 @@ def _create_default_options_getter():
class UI(object):
"""UI for PIN/passphrase entry (for TREZOR devices)."""
def __init__(self, device_type, config):
def __init__(self, device_type, config=None):
"""C-tor."""
default_pinentry = 'pinentry' # by default, use GnuPG pinentry tool
if config is None:
config = {}
self.pin_entry_binary = config.get('pin_entry_binary',
default_pinentry)
self.passphrase_entry_binary = config.get('passphrase_entry_binary',

Loading…
Cancel
Save