From 16486e1490285eab43598a08a4bb8346b978a6b7 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Mon, 9 Jan 2012 12:11:52 -0500 Subject: [PATCH] Added python2.5 compatibility - this should allow it to run on Leopard --- misc_funcs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc_funcs.py b/misc_funcs.py index 0f3860a..fe6b953 100644 --- a/misc_funcs.py +++ b/misc_funcs.py @@ -85,14 +85,14 @@ class RepeatTimer(Thread): def run(self): count = 0 - while not self.finished.is_set() and (self.iterations <= 0 or count < self.iterations): + while not self.finished.isSet() and (self.iterations <= 0 or count < self.iterations): try: self.finished.wait(self.interval) - if not self.finished.is_set(): + if not self.finished.isSet(): #print self.function self.function(*self.args, **self.kwargs) count += 1 - except Exception as e: + except Exception: self.cancel() def cancel(self):