Fixed memes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-10-03 14:33:00 +02:00
parent 5d4b3cfe60
commit eef15fc0b8
3 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@ class LoopingTimer:
"""
Looping timer. Executes a function and repeates it in the given interval.
"""
def __init__(self, interval, function, tick_args=[], tick_kwargs={}):
def __init__(self, interval, function, tick_args=None, tick_kwargs=None):
"""
Initialize class
:param interval:
@ -26,8 +26,8 @@ class LoopingTimer:
self._timer = None
self.interval = interval
self.function = function
self._tick_args = tick_args
self._tick_kwargs = tick_kwargs
self._tick_args = tick_args or []
self._tick_kwargs = tick_kwargs or {}
self.is_running = False
self.start()