constructor: ralf style
authorConstantin Berhard <constantin@exxxtremesys.lu>
Thu, 10 Oct 2013 14:59:34 +0000 (16:59 +0200)
committerConstantin Berhard <constantin@exxxtremesys.lu>
Thu, 10 Oct 2013 14:59:34 +0000 (16:59 +0200)
statemachine.py

index 1d75b2c1c53d2f12433a0d1a88fe73c01e3307be..5583cc6430ca1d3a19bcc830fb2786e7955886cc 100644 (file)
@@ -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):
        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
                        self.callbacks=[callback]
                        # FIXME: can we send "202 processing: Trying to close the door" here? Are the callbacks multi-use?
                        self.tries = 0