Skip to content

Commit 47de889

Browse files
committed
Fix PEP8 E501 where possible.
1 parent e3ec510 commit 47de889

File tree

5 files changed

+36
-12
lines changed

5 files changed

+36
-12
lines changed

examples/browsers/browsers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
# Retrieve email statistics by browser. #
1010
# GET /browsers/stats #
1111

12-
params = {'end_date': '2016-04-01', 'aggregated_by': 'day', 'browsers': 'test_string',
13-
'limit': 'test_string', 'offset': 'test_string', 'start_date': '2016-01-01'}
12+
params = {'end_date': '2016-04-01',
13+
'aggregated_by': 'day',
14+
'browsers': 'test_string',
15+
'limit': 'test_string',
16+
'offset': 'test_string',
17+
'start_date': '2016-01-01'}
1418
response = sg.client.browsers.stats.get(query_params=params)
1519
print(response.status_code)
1620
print(response.body)

examples/categories/categories.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@
3030
# Retrieve sums of email stats for each category [Needs: Stats object defined, has category ID?] #
3131
# GET /categories/stats/sums #
3232

33-
params = {'end_date': '2016-04-01', 'aggregated_by': 'day', 'limit': 1,
34-
'sort_by_metric': 'test_string', 'offset': 1, 'start_date': '2016-01-01', 'sort_by_direction': 'asc'}
33+
params = {'end_date': '2016-04-01',
34+
'aggregated_by': 'day',
35+
'limit': 1,
36+
'sort_by_metric': 'test_string',
37+
'offset': 1,
38+
'start_date': '2016-01-01',
39+
'sort_by_direction': 'asc'}
3540
response = sg.client.categories.stats.sums.get(query_params=params)
3641
print(response.status_code)
3742
print(response.body)

examples/mailboxproviders/mailboxproviders.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
# Retrieve email statistics by mailbox provider. #
1010
# GET /mailbox_providers/stats #
1111

12-
params = {'end_date': '2016-04-01', 'mailbox_providers': 'test_string',
13-
'aggregated_by': 'day', 'limit': 1, 'offset': 1, 'start_date': '2016-01-01'}
12+
params = {'end_date': '2016-04-01',
13+
'mailbox_providers': 'test_string',
14+
'aggregated_by': 'day',
15+
'limit': 1,
16+
'offset': 1,
17+
'start_date': '2016-01-01'}
1418
response = sg.client.mailbox_providers.stats.get(query_params=params)
1519
print(response.status_code)
1620
print(response.body)

examples/subusers/subusers.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@
4747
# Retrieve email statistics for your subusers. #
4848
# GET /subusers/stats #
4949

50-
params = {'end_date': '2016-04-01', 'aggregated_by': 'day', 'limit': 1,
51-
'offset': 1, 'start_date': '2016-01-01', 'subusers': 'test_string'}
50+
params = {'end_date': '2016-04-01',
51+
'aggregated_by': 'day',
52+
'limit': 1,
53+
'offset': 1,
54+
'start_date': '2016-01-01',
55+
'subusers': 'test_string'}
5256
response = sg.client.subusers.stats.get(query_params=params)
5357
print(response.status_code)
5458
print(response.body)
@@ -58,8 +62,12 @@
5862
# Retrieve monthly stats for all subusers #
5963
# GET /subusers/stats/monthly #
6064

61-
params = {'subuser': 'test_string', 'limit': 1, 'sort_by_metric': 'test_string',
62-
'offset': 1, 'date': 'test_string', 'sort_by_direction': 'asc'}
65+
params = {'subuser': 'test_string',
66+
'limit': 1,
67+
'sort_by_metric': 'test_string',
68+
'offset': 1,
69+
'date': 'test_string',
70+
'sort_by_direction': 'asc'}
6371
response = sg.client.subusers.stats.monthly.get(query_params=params)
6472
print(response.status_code)
6573
print(response.body)

examples/user/user.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,11 @@
287287
# Retrieves Inbound Parse Webhook statistics. #
288288
# GET /user/webhooks/parse/stats #
289289

290-
params = {'aggregated_by': 'day', 'limit': 'test_string',
291-
'start_date': '2016-01-01', 'end_date': '2016-04-01', 'offset': 'test_string'}
290+
params = {'aggregated_by': 'day',
291+
'limit': 'test_string',
292+
'start_date': '2016-01-01',
293+
'end_date': '2016-04-01',
294+
'offset': 'test_string'}
292295
response = sg.client.user.webhooks.parse.stats.get(query_params=params)
293296
print(response.status_code)
294297
print(response.body)

0 commit comments

Comments
 (0)