Avoid mutable objects in signature
This commit is contained in:
parent
f7f0ecb566
commit
31ebf9356a
@ -74,7 +74,7 @@ init -1 python:
|
|||||||
if ev.completed:
|
if ev.completed:
|
||||||
if ev.repeat:
|
if ev.repeat:
|
||||||
repeatable.append(ev)
|
repeatable.append(ev)
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
return ev
|
return ev
|
||||||
@ -120,8 +120,9 @@ init -1 python:
|
|||||||
_queue = None
|
_queue = None
|
||||||
_parent = None
|
_parent = None
|
||||||
|
|
||||||
def __init__(self, id, wait=0, priority=5, daytime=None, req=None, label=None, func=None, queue="eventqueue", autoenqueue=False, autodequeue=True,
|
def __init__(self, id,
|
||||||
repeat=True, fail_suffixes=("_fail", "too_much", "too_much_public"), ignore_labels=[], subevents=[], disabled=False):
|
wait=0, priority=5, daytime=None, req=None, label=None, func=None, queue="eventqueue", autoenqueue=False, autodequeue=True,
|
||||||
|
repeat=True, fail_suffixes=("_fail", "too_much", "too_much_public"), ignore_labels=(), subevents=(), disabled=False):
|
||||||
self.id = id
|
self.id = id
|
||||||
self.wait = wait
|
self.wait = wait
|
||||||
self.priority = priority
|
self.priority = priority
|
||||||
@ -134,8 +135,8 @@ init -1 python:
|
|||||||
self.autodequeue = autodequeue
|
self.autodequeue = autodequeue
|
||||||
self.repeat = repeat
|
self.repeat = repeat
|
||||||
self.fail_suffixes = tuple(fail_suffixes)
|
self.fail_suffixes = tuple(fail_suffixes)
|
||||||
self.ignore_labels = ignore_labels
|
self.ignore_labels = list(ignore_labels)
|
||||||
self.subevents = subevents
|
self.subevents = list(subevents)
|
||||||
self.disabled = disabled
|
self.disabled = disabled
|
||||||
|
|
||||||
for ev in subevents:
|
for ev in subevents:
|
||||||
|
Loading…
Reference in New Issue
Block a user