def switchState(self, newState):
        validTransitions = Order.VALID_TRANSITIONS.get(self.__state, [])
        if newState not in validTransitions:
            raise Exception((Order.State.toString(self.__state), Order.State.toString(newState)) % "Invalid order state transition from %s to %s")
        else:
            self.__state = newState
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/broker/__init__.py/Order.switchState/swapped operands of `%`