diff options
author | Jean-Philippe Caruana <jp@barreverte.fr> | 2013-07-26 13:05:25 +0200 |
---|---|---|
committer | Jean-Philippe Caruana <jp@barreverte.fr> | 2013-07-26 17:48:33 +0200 |
commit | a9f2e1482ca65a919a7a9f0c44af7f9f51907887 (patch) | |
tree | e8a4970b42759c9fcebe01a18a56bddaf0d88214 /sleekxmpp/thirdparty/statemachine.py | |
parent | 2c26fb0d76b550fddf64082c17de1054a7b23089 (diff) | |
download | slixmpp-a9f2e1482ca65a919a7a9f0c44af7f9f51907887.tar.gz slixmpp-a9f2e1482ca65a919a7a9f0c44af7f9f51907887.tar.bz2 slixmpp-a9f2e1482ca65a919a7a9f0c44af7f9f51907887.tar.xz slixmpp-a9f2e1482ca65a919a7a9f0c44af7f9f51907887.zip |
fix: replace mutable argument (a list) in StateMachine constructor
Diffstat (limited to 'sleekxmpp/thirdparty/statemachine.py')
-rw-r--r-- | sleekxmpp/thirdparty/statemachine.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/thirdparty/statemachine.py b/sleekxmpp/thirdparty/statemachine.py index 4b5ecd6b..113320fa 100644 --- a/sleekxmpp/thirdparty/statemachine.py +++ b/sleekxmpp/thirdparty/statemachine.py @@ -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) |