From 6b0eab6ffa638fb521a524ce281212a796f12b04 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 9 Jun 2015 12:03:26 -0400 Subject: [style] minor style fixes for correction after suggestions in the review --- client/src/leap/soledad/client/api.py | 8 +++++--- client/src/leap/soledad/client/encdecpool.py | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index fd91ff8b..3cc1f8a5 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -662,8 +662,8 @@ class Soledad(object): self._last_received_docs = docs = self._dbsyncer.received_docs # Post-Sync Hooks - synced_plugin = soledad_interfaces.ISoledadPostSyncPlugin if docs: + iface = soledad_interfaces.ISoledadPostSyncPlugin suitable_plugins = collect_plugins(synced_plugin) for plugin in suitable_plugins: watched = plugin.watched_doc_types @@ -805,13 +805,15 @@ class Soledad(object): def raw_sqlcipher_query(self, *args, **kw): """ - Run a raw sqlcipher query in the local database, and return the result. + Run a raw sqlcipher query in the local database, and return a deferred + that will be fired with the result. """ return self._dbpool.runQuery(*args, **kw) def raw_sqlcipher_operation(self, *args, **kw): """ - Run a raw sqlcipher operation in the local database, and return None. + Run a raw sqlcipher operation in the local database, and return a + deferred that will be fired with None. """ return self._dbpool.runOperation(*args, **kw) diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index eff53e28..f81cd2d1 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -579,7 +579,6 @@ class SyncDecrypterPool(SyncEncryptDecryptPool): query += " ORDER BY %s %s" % (order_by, order) return self._runQuery(query) - @defer.inlineCallbacks def _get_insertable_docs(self): """ -- cgit v1.2.3