@action.setter
    def action(self, value):
        try:
            self._action = 1 - actions.index(value)
        except ValueError:
            raise ValueError("action value not in " + repr(actions))
dataset/ETHPy150Open javgh/greenaddress-pos-tools/nfc/ndef/smart_poster.py/SmartPosterRecord.action/swapped operands of `-`