Skip to content

Commit 65954b1

Browse files
authored
Merge pull request #26 from robbiet480/patch-1
Change long to int to support Python 3
2 parents 7f9f4b8 + d7b5c36 commit 65954b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pywebpush/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def send(self, data, headers=None, ttl=0, gcm_key=None, reg_id=None):
198198
data['registration_ids'] = reg_ids
199199
data['raw_data'] = base64.b64encode(
200200
encoded.get('body')).decode('utf8')
201-
data['time_to_live'] = long(headers['ttl'] if 'ttl' in headers else ttl)
201+
data['time_to_live'] = int(headers['ttl'] if 'ttl' in headers else ttl)
202202
encoded_data = json.dumps(data)
203203
headers.update({
204204
'Authorization': 'key='+gcm_key,

0 commit comments

Comments
 (0)