- for action, params in actions:
- # New bullets reset the parent hierarchy.
- self.actions.append(Action(self, None, action, params, rank))
+ # New bullets reset the parent hierarchy.
+ self.actions = [Action(self, None, action, params, rank)
+ for action, params in actions]