Skip to content

Commit bf3ba92

Browse files
committed
GCM: Minor Python 3 fixes
1 parent b538a55 commit bf3ba92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

push_notifications/gcm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _gcm_send(data, content_type):
4444
}
4545

4646
request = Request(SETTINGS["GCM_POST_URL"], data, headers)
47-
return urlopen(request).read()
47+
return urlopen(request).read().decode("utf-8")
4848

4949

5050
def _gcm_send_plain(registration_id, data, **kwargs):

0 commit comments

Comments
 (0)