Update client.py according to PEP8

This commit is contained in:
Leonid R
2016-03-25 23:33:26 +04:00
parent 09685404ea
commit 413957fa59
+1 -1
View File
@@ -22,7 +22,7 @@ class APNsClient(object):
self.__connection = HTTP20Connection(server, port, ssl_context=ssl_context) self.__connection = HTTP20Connection(server, port, ssl_context=ssl_context)
def send_notification(self, token_hex, notification, priority=NotificationPriority.Immediate, topic=None): def send_notification(self, token_hex, notification, priority=NotificationPriority.Immediate, topic=None):
json_payload = dumps(notification.dict(), ensure_ascii=False, separators=(',',':')).encode('utf-8') json_payload = dumps(notification.dict(), ensure_ascii=False, separators=(',', ':')).encode('utf-8')
headers = { headers = {
'apns-priority': priority.value 'apns-priority': priority.value