Skip to content

Commit d25c00a

Browse files
committed
fixing boolean operator position
1 parent d72373c commit d25c00a

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

python_http_client/client.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,15 @@ def http_request(*_, **kwargs):
212212
# Don't serialize to a JSON formatted str if we don't have
213213
# a JSON Content-Type
214214
if 'Content-Type' in self.request_headers:
215-
if (self.request_headers['Content-Type']
216-
!= 'application/json'):
215+
if (self.request_headers['Content-Type'] !=
216+
'application/json'):
217217
data = kwargs['request_body'].encode('utf-8')
218218
else:
219219
data = json.dumps(
220-
kwargs['request_body']
221-
).encode('utf-8')
220+
kwargs['request_body']).encode('utf-8')
222221
else:
223222
data = json.dumps(
224-
kwargs['request_body']
225-
).encode('utf-8')
223+
kwargs['request_body']).encode('utf-8')
226224
params = (kwargs['query_params']
227225
if 'query_params' in kwargs
228226
else None)

0 commit comments

Comments
 (0)