summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0323/timerreset.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0323/timerreset.py')
-rw-r--r--slixmpp/plugins/xep_0323/timerreset.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0323/timerreset.py b/slixmpp/plugins/xep_0323/timerreset.py
index baa80d41..616380e7 100644
--- a/slixmpp/plugins/xep_0323/timerreset.py
+++ b/slixmpp/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