Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/core.py')
-rw-r--r--tutorius/core.py4
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