# HG changeset patch # User Teemu Piippo # Date 1417233392 -7200 # Node ID af912f53649cf4260ca6d24cdd8d77e2fe90a0c6 # Parent 2c93636202a5b7706d1e5d9acfe29216dc0cbfbf - What the fuck. diff -r 2c93636202a5 -r af912f53649c rest.py --- a/rest.py Fri Nov 28 22:45:55 2014 -0500 +++ b/rest.py Sat Nov 29 05:56:32 2014 +0200 @@ -112,7 +112,7 @@ address = None def __init__ (self, conn, address): - asyncore.dispatcher.__init__ (self, conn) + asyncore.dispatcher.__init__ (self, conn, address) self.socket = ssl.wrap_socket (conn, server_side=True, keyfile='key.pem', certfile='cert.pem', do_handshake_on_connect=False) self.socket.setblocking (0) @@ -193,8 +193,5 @@ Irc.broadcast ('REST connection from %s:%s' % address) conn = RESTConnection (sock, address) - if conn.address == None: - conn.__init__ (sock, address) # eh? - def handle_error (self): return