From 8feb684cae58c5a570edefc163001beeb54029df Mon Sep 17 00:00:00 2001 From: Constantin Berhard Date: Thu, 10 Oct 2013 16:59:34 +0200 Subject: [PATCH] constructor: ralf style --- statemachine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statemachine.py b/statemachine.py index 1d75b2c..5583cc6 100644 --- a/statemachine.py +++ b/statemachine.py @@ -184,7 +184,7 @@ class StateMachine(): class StateClosing(State): # TODO: share code with StateOpening, and possibly also with the nerv-mechanism from StateAboutToOpen def __init__(self,callback,sm): - State.__init__(self,sm) + super().__init__(sm) self.callbacks=[callback] # FIXME: can we send "202 processing: Trying to close the door" here? Are the callbacks multi-use? self.tries = 0 -- 2.30.2