# The consumer thread
self.queue = Queue.Queue()
self.thread = threading.Thread(target=self.dequeue)
- self.thread.daemon = True
+ self.thread.setDaemon(True)
self.thread.start()
def nickname(self, n=None):
"Return a name for the nth server connection."
self.irc.add_global_handler("disconnect", self._handle_disconnect)
self.irc.add_global_handler("kick", self._handle_kick)
thread = threading.Thread(target=self.irc.process_forever)
- thread.daemon = True
+ thread.setDaemon(True)
self.irc._thread = thread
thread.start()
self.servers = {}
irker = Irker(debuglevel=debuglvl)
tcpserver = SocketServer.TCPServer((HOST, PORT), IrkerTCPHandler)
tcpserver = threading.Thread(target=tcpserver.serve_forever)
- tcpserver.daemon = True
+ tcpserver.setDaemon(True)
tcpserver.start()
udpserver = SocketServer.UDPServer((HOST, PORT), IrkerUDPHandler)
udpserver = threading.Thread(target=udpserver.serve_forever)
- udpserver.daemon = True
+ udpserver.setDaemon(True)
udpserver.start()
try:
while True: