aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-15 14:06:02 +0200
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-15 14:06:02 +0200
commit3d06315f862150a978ba3c8a7a5a3b1672b6e89d (patch)
tree098924db5c2c2cbe0ab0dfbf6c4cce5d5edb41e5
parentafa654af0a2d2e6b34b47af52ed214977b7a3e12 (diff)
downloadpyParrotZikTCP-3d06315f862150a978ba3c8a7a5a3b1672b6e89d.tar.xz
pyParrotZikTCP-3d06315f862150a978ba3c8a7a5a3b1672b6e89d.zip
Proper wrap.
-rw-r--r--parrot_zik/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/parrot_zik/utils.py b/parrot_zik/utils.py
index 18b878d..86f52cd 100644
--- a/parrot_zik/utils.py
+++ b/parrot_zik/utils.py
@@ -1,3 +1,4 @@
+import functools
from threading import Lock
import gtk
@@ -15,10 +16,10 @@ class repeat(object):
def start(self, cls, frequency):
self.lock.acquire()
if not self.id:
+ @functools.wraps(self.f)
def run():
self.f(cls)
return True
-
self.id = gtk.timeout_add(frequency, run)
self.lock.release()