mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 07:07:58 +00:00
Replaced default mutable argument
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user