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:
petrucci4prez 2017-06-08 01:22:43 -04:00
parent ec4bac1b15
commit 076541390c
1 changed files with 1 additions and 1 deletions

View File

@ -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