Skip to content

Commit f740344

Browse files
committed
Fixes coding style
1 parent fd3a3de commit f740344

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

algoliasearch/http/transporter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ def __init__(self, verb, headers, data, connect_timeout, timeout):
112112
self.connect_timeout = connect_timeout
113113
self.timeout = timeout
114114
self.url = ''
115-
self;
116115

117116
def __eq__(self, other):
118117
# type: (object) -> bool

algoliasearch/search_index.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ def save_objects(self, objects, request_options=None):
6363

6464
if generate_object_id:
6565
response = self._chunk('addObject', objects, request_options,
66-
False)
66+
False)
6767
else:
6868
try:
6969
response = self._chunk('updateObject', objects,
70-
request_options)
70+
request_options)
7171
except MissingObjectIdException as e:
7272
message = str(e)
7373
message += ". All objects must have an unique objectID " \
@@ -163,10 +163,10 @@ def partial_update_objects(self, objects, request_options=None):
163163

164164
if generate_object_id:
165165
response = self._chunk('partialUpdateObject', objects,
166-
request_options, False)
166+
request_options, False)
167167
else:
168168
response = self._chunk('partialUpdateObjectNoCreate', objects,
169-
request_options)
169+
request_options)
170170

171171
return response
172172

@@ -475,7 +475,7 @@ def batch(self, requests, request_options=None):
475475
return IndexingResponse(self, [raw_response])
476476

477477
def _chunk(self, action, objects, request_options,
478-
validate_object_id=True):
478+
validate_object_id=True):
479479
# type: (str, Union[List[dict], Iterator[dict]], Optional[Union[dict, RequestOptions]], bool) -> IndexingResponse # noqa: E501
480480

481481
raw_responses = []

0 commit comments

Comments
 (0)