diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-15 14:06:02 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-15 14:06:02 +0200 |
commit | 3d06315f862150a978ba3c8a7a5a3b1672b6e89d (patch) | |
tree | 098924db5c2c2cbe0ab0dfbf6c4cce5d5edb41e5 | |
parent | afa654af0a2d2e6b34b47af52ed214977b7a3e12 (diff) | |
download | pyParrotZikTCP-3d06315f862150a978ba3c8a7a5a3b1672b6e89d.tar.xz pyParrotZikTCP-3d06315f862150a978ba3c8a7a5a3b1672b6e89d.zip |
Proper wrap.
Diffstat (limited to '')
-rw-r--r-- | parrot_zik/utils.py | 3 |
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() |