Replaced default mutable argument

This commit is contained in:
Artem30801
2019-06-18 12:29:33 +03:00
parent 1a3b583073
commit 46d85bc3e1

View File

@@ -42,7 +42,10 @@ class TaskManager(object):
self._timeshift = 0.0
def add_task(self, timestamp, priority, task_function,
task_args=(), task_kwargs={}, task_delayable=False):
task_args=(), task_kwargs=None, task_delayable=False):
if task_kwargs is None:
task_kwargs = {}
self._wait_interrupt_event.set()
self._running_event.clear()