ui: use {} as default config

This commit is contained in:
Roman Zeyde
2018-03-11 13:34:50 +02:00
parent d0497b0137
commit ceae65aa5a

View File

@@ -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',