Revert "make State.next() raise keyerror when necessary"
This reverts commit 979dc97707
.
it is actually necessary to provde fallthru here so we do not need to make a massive transition table
This commit is contained in:
parent
ec4bac1b15
commit
076541390c
|
@ -54,7 +54,7 @@ class State:
|
|||
|
||||
def next(self, signal):
|
||||
t = (self, signal)
|
||||
return self.stateMachine.transitionTable[t]
|
||||
return self if t not in self.stateMachine.transitionTable else self.stateMachine.transitionTable[t]
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Reference in New Issue