projects
/
saartuer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0ab27e5
)
constructor: ralf style
author
Constantin Berhard
<constantin@exxxtremesys.lu>
Thu, 10 Oct 2013 14:59:34 +0000
(16:59 +0200)
committer
Constantin Berhard
<constantin@exxxtremesys.lu>
Thu, 10 Oct 2013 14:59:34 +0000
(16:59 +0200)
statemachine.py
patch
|
blob
|
history
diff --git
a/statemachine.py
b/statemachine.py
index 1d75b2c1c53d2f12433a0d1a88fe73c01e3307be..5583cc6430ca1d3a19bcc830fb2786e7955886cc 100644
(file)
--- 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