Avoid mutable objects in signature
(cherry picked from commit 31ebf9356a
)
This commit is contained in:
parent
62cb39cd19
commit
1bd428a0d8
@ -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