diff options
Diffstat (limited to 'client/src/leap/soledad/client/api.py')
-rw-r--r-- | client/src/leap/soledad/client/api.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index 6c9dce54..219be969 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -211,8 +211,10 @@ class Soledad(object): Initialize configuration using default values for missing params. """ soledad_assert_type(self._passphrase, unicode) - initialize = lambda attr, val: getattr( - self, attr, None) is None and setattr(self, attr, val) + + def initialize(attr, val): + return getattr(self, attr, None) is None and + setattr(self, attr, val) initialize("_secrets_path", os.path.join( self.default_prefix, self.secrets_file_name)) |