diff options
author | Simon Poirier <simpoir@gmail.com> | 2009-10-24 21:25:46 (GMT) |
---|---|---|
committer | Simon Poirier <simpoir@gmail.com> | 2009-10-24 21:25:46 (GMT) |
commit | a0368054cc38c46c343499aebe38050d69df2cd3 (patch) | |
tree | a3e17167086aa4f1cff17aad58f55a29e5fdb200 /tutorius/core.py | |
parent | a6e312c9f0e1bd690963191bb5331eaabb06b431 (diff) |
merge creator
Conflicts:
tutorius/core.py
Diffstat (limited to 'tutorius/core.py')
-rw-r--r-- | tutorius/core.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tutorius/core.py b/tutorius/core.py index b24b80b..cf1d6b3 100644 --- a/tutorius/core.py +++ b/tutorius/core.py @@ -505,10 +505,9 @@ class FiniteStateMachine(State): #TODO : Move this code inside the State itself - we're breaking # encap :P - if st._transitions: - for event, state in st._transitions.items(): - if state == state_name: - del st._transitions[event] + for event in st._transitions: + if st._transitions[event] == state_name: + del st._transitions[event] # Remove the state from the dictionary del self._states[state_name] |