def _get_action_controllers(self, req, ticket, action):
        """Generator yielding the controllers handling the given `action`"""
        for controller in TicketSystem(self.env).action_controllers:
            actions = [a for w, a in
                       controller.get_ticket_actions(req, ticket) or []]
            if actions in action:
                yield controller
dataset/ETHPy150Open edgewall/trac/trac/ticket/batch.py/BatchModifyModule._get_action_controllers/swapped operands of `in`