diff options
author | Robin Gloster <robin@loc-com.de> | 2014-08-23 14:25:35 +0200 |
---|---|---|
committer | Robin Gloster <robin@loc-com.de> | 2014-08-23 14:25:35 +0200 |
commit | 073e85381a86069e931369bb5353cab2a2e3682d (patch) | |
tree | 42324f679fb193df1f7e3c6c7c0dd8ef5f7239bf /sleekxmpp/plugins/xep_0323 | |
parent | afc939708ff71e168f9204f1eab8823b7dc9f875 (diff) | |
download | slixmpp-073e85381a86069e931369bb5353cab2a2e3682d.tar.gz slixmpp-073e85381a86069e931369bb5353cab2a2e3682d.tar.bz2 slixmpp-073e85381a86069e931369bb5353cab2a2e3682d.tar.xz slixmpp-073e85381a86069e931369bb5353cab2a2e3682d.zip |
fix args, kwargs which were broken with #310. this is essentially the same but working
Diffstat (limited to 'sleekxmpp/plugins/xep_0323')
-rw-r--r-- | sleekxmpp/plugins/xep_0323/timerreset.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0323/timerreset.py b/sleekxmpp/plugins/xep_0323/timerreset.py index f36d95e5..398b47c1 100644 --- a/sleekxmpp/plugins/xep_0323/timerreset.py +++ b/sleekxmpp/plugins/xep_0323/timerreset.py @@ -23,7 +23,12 @@ class _TimerReset(Thread): t.cancel() # stop the timer's action if it's still waiting """ - def __init__(self, interval, function, *args, **kwargs): + def __init__(self, interval, function, args=None, kwargs=None): + if not kwargs: + kwargs = {} + if not args: + args = [] + Thread.__init__(self) self.interval = interval self.function = function |