diff options
author | Kali Kaneko <kali@leap.se> | 2015-08-28 12:37:01 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-08-28 12:37:01 -0400 |
commit | af611822aa0ed3fa4be7089fa9835820f489431f (patch) | |
tree | 33c509c72fa4fc7953f32d6eec366272ced95d9b /client/src/leap/soledad | |
parent | 057f9c02894c05de4d1d4fc1f93ba86ec6bea96d (diff) |
[style] pep8 fixes
Diffstat (limited to 'client/src/leap/soledad')
-rw-r--r-- | client/src/leap/soledad/client/http_target.py | 6 | ||||
-rw-r--r-- | client/src/leap/soledad/client/http_target/api.py | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/client/src/leap/soledad/client/http_target.py b/client/src/leap/soledad/client/http_target.py index ed538add..046af089 100644 --- a/client/src/leap/soledad/client/http_target.py +++ b/client/src/leap/soledad/client/http_target.py @@ -402,7 +402,8 @@ class SoledadHTTPSyncTarget(SyncTarget): sync_id=sync_id, ensure=self._ensure_callback is not None) total = len(docs_by_generation) - entries = yield self._entries_from_docs(initial_body, docs_by_generation) + entries = yield self._entries_from_docs( + initial_body, docs_by_generation) while len(entries): result = yield self._http_request( self._url, @@ -663,7 +664,8 @@ class SoledadHTTPSyncTarget(SyncTarget): insert_doc_cb=self._insert_doc_cb, source_replica_uid=self.source_replica_uid) - def _http_request(self, url, method='GET', body=None, headers=None, content_type=None): + def _http_request(self, url, method='GET', body=None, headers=None, + content_type=None): headers = headers or self._base_header if content_type: headers.update({'content-type': [content_type]}) diff --git a/client/src/leap/soledad/client/http_target/api.py b/client/src/leap/soledad/client/http_target/api.py index 98a5b47e..dc13e9cc 100644 --- a/client/src/leap/soledad/client/http_target/api.py +++ b/client/src/leap/soledad/client/http_target/api.py @@ -56,7 +56,8 @@ class SyncTargetAPI(SyncTarget): def _defer_encryption(self): return self._sync_enc_pool is not None - def _http_request(self, url, method='GET', body=None, headers=None, content_type=None): + def _http_request(self, url, method='GET', body=None, headers=None, + content_type=None): headers = headers or self._base_header if content_type: headers.update({'content-type': [content_type]}) |