fix: replace mutable argument (a list) in StateMachine constructor
This commit is contained in:
parent
2c26fb0d76
commit
a9f2e1482c
1 changed files with 2 additions and 1 deletions
3
sleekxmpp/thirdparty/statemachine.py
vendored
3
sleekxmpp/thirdparty/statemachine.py
vendored
|
@ -15,7 +15,8 @@ log = logging.getLogger(__name__)
|
|||
|
||||
class StateMachine(object):
|
||||
|
||||
def __init__(self, states=[]):
|
||||
def __init__(self, states=None):
|
||||
if not states: states = []
|
||||
self.lock = threading.Condition()
|
||||
self.__states = []
|
||||
self.addStates(states)
|
||||
|
|
Loading…
Reference in a new issue