From: Michael Tremer Date: Thu, 22 Apr 2010 18:05:36 +0000 (+0200) Subject: Use old API of threading code to be compatible with python 2.5. X-Git-Url: http://git.ipfire.org/?p=oddments%2Fcappie.git;a=commitdiff_plain;h=74e192ba1c9f30f6e5072e5532a2e766b28869b5 Use old API of threading code to be compatible with python 2.5. --- diff --git a/cappie/__init__.py b/cappie/__init__.py index 2fea5e0..1cf1e8d 100644 --- a/cappie/__init__.py +++ b/cappie/__init__.py @@ -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)