state methods are allowed to be None

This commit is contained in:
Joe Shochet 2003-09-22 21:05:33 +00:00
parent 4a01fe9851
commit 564bb18332
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ class State(DirectObject):
def redefineFunc(self, oldMethod, newMethod, map):
if not FsmRedefine:
return
# Methods are allowed to be None
if oldMethod is None:
return
if map.has_key(oldMethod):
# Get the list of states for the old function
stateList = map[oldMethod]