diff options
Diffstat (limited to 'tutorius/core.py')
-rw-r--r-- | tutorius/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorius/core.py b/tutorius/core.py index 6030457..0f33052 100644 --- a/tutorius/core.py +++ b/tutorius/core.py @@ -515,8 +515,8 @@ class FiniteStateMachine(State): #TODO : Move this code inside the State itself - we're breaking # encap :P - for event, state in st._transitions: - if state == state_name: + for event in st._transitions: + if st._transitions[event] == state_name: del st._transitions[event] # Remove the state from the dictionary |