- try:
- actions.append((action.params(params), action.action))
- except AttributeError:
- actions.append((params, action))
- return (self.direction and self.direction(params, rank),
- self.speed and self.speed(params, rank),
- actions)
+ actions.append(action(params, rank))
+ return (
+ self.direction and self.direction(params, rank),
+ self.speed and self.speed(params, rank),
+ actions)