From ee9ab32cd3cbe6a4fa73401a45faff6a36d16acf Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 19 Aug 2015 15:22:55 -0400 Subject: [style] pep8 cleanups --- client/src/leap/soledad/client/api.py | 4 ++-- client/src/leap/soledad/client/encdecpool.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src') diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index b91e497f..7afc9c6c 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -222,8 +222,8 @@ class Soledad(object): soledad_assert_type(self._passphrase, unicode) def initialize(attr, val): - return ((getattr(self, attr, None) is None) - and setattr(self, 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)) diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index 69b0556b..2ad98767 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -136,6 +136,7 @@ class SyncEncryptDecryptPool(object): """ return self._sync_db.runQuery(query, *args) + def encrypt_doc_task(doc_id, doc_rev, content, key, secret): """ Encrypt the content of the given document. @@ -419,7 +420,6 @@ class SyncDecrypterPool(SyncEncryptDecryptPool): self._deferred_init = self._init_db() self._wait_init_db('_runOperation', '_runQuery') - def _wait_init_db(self, *methods): """ Methods that need to wait for db initialization. -- cgit v1.2.3