Skip to content

Commit 8b56d0b

Browse files
Fix linting errors on request.py
1 parent f2b42ea commit 8b56d0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

analytics/request.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ def post(write_key, host=None, gzip=False, timeout=15, **kwargs):
3030
headers['Content-Encoding'] = 'gzip'
3131
buf = BytesIO()
3232
with GzipFile(fileobj=buf, mode='w') as gz:
33-
# 'data' was produced by json.dumps(), whose default encoding is utf-8.
33+
# 'data' was produced by json.dumps(),
34+
# whose default encoding is utf-8.
3435
gz.write(data.encode('utf-8'))
3536
data = buf.getvalue()
3637

37-
res = _session.post(url, data=data, auth=auth, headers=headers, timeout=timeout)
38+
res = _session.post(url, data=data, auth=auth,
39+
headers=headers, timeout=timeout)
3840

3941
if res.status_code == 200:
4042
log.debug('data uploaded successfully')

0 commit comments

Comments
 (0)