- if isinstance(action, (ActionDef, ActionRef)):
- child = self.Child(action, s_params, rank)
- owner.replace(self, child)
- child.step(owner, created)
- break
-
- elif action(owner, self, s_params, rank, created):
+ if action(owner, self, s_params, rank, created):