From a9f2e1482ca65a919a7a9f0c44af7f9f51907887 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Caruana Date: Fri, 26 Jul 2013 13:05:25 +0200 Subject: fix: replace mutable argument (a list) in StateMachine constructor --- sleekxmpp/thirdparty/statemachine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3