djacobs / PyAPNs

Python library for interacting with the Apple Push Notification service (APNs)
http://pypi.python.org/pypi/apns/
MIT License
1.22k stars 377 forks source link

Made fix for Python 2.6.6, which doesn't allow write() to use bytearrays #124

Open illuminatedwax opened 9 years ago

illuminatedwax commented 9 years ago

The library doesn't fully work with Python 2.6.6 (and most likely Python 2.6 in general), because the write() method in the ssl socket library does not support using bytearray to write from. This fix should fix this problem and still work in all other versions of Python.