summaryrefslogtreecommitdiff
path: root/client/src/leap
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/leap')
-rw-r--r--client/src/leap/soledad/client/http_target.py6
-rw-r--r--client/src/leap/soledad/client/http_target/api.py3
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]})