Maybe you could commit that?
try: #python 2.6+ from hashlib import md5, sha1 except ImportError: import md5 from sha import sha as sha1 protocol = "self.isSecure() and wss" or "ws" That would help to people with 2.4! From: Corbin Simpson [mailto:mostawesomed...@gmail.com] Sent: Thursday, April 12, 2012 3:18 PM To: matu...@yahoo.com Subject: Re: txws.py websocket and Python 2.4 Yeah, definitely. On Apr 12, 2012 3:16 PM, <matu...@yahoo.com> wrote: I do not quite know the most recent status of txws.py, whether it is being merged to Twisted or not. But I noticed that it has it has two incompatibilities with Python 2.4: 1. from hashlib import md5, sha1 2. protocol = "wss" if self.isSecure() else "ws" After fixing those, it works on 2.4. Would it make sense to make that change on github?
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python