Use old API of threading code to be compatible with python 2.5.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Apr 2010 18:05:36 +0000 (20:05 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Apr 2010 18:05:36 +0000 (20:05 +0200)
cappie/__init__.py

index 2fea5e0..1cf1e8d 100644 (file)
@@ -92,12 +92,12 @@ class Cappie(object):
                        iface.start()
 
                while True:
-                       if not self.queue.is_alive():
+                       if not self.queue.isAlive():
                                self.log.critical("Queue thread died unexpectedly.")
                                return
 
                        for iface in self.__interfaces:
-                               if not iface.is_alive():
+                               if not iface.isAlive():
                                        self.log.critical("Thread died unexpectedly. %s" % iface.dev)
                                        return
                                time.sleep(60)