def to_op(self):
        """
        Extracts the mutation operation from the register.

        :rtype: str, None
        """
        if self._new_value is not None:
            return ('assign', self._new_value)
dataset/ETHPy150Open basho/riak-python-client/riak/datatypes/register.py/Register.to_op/original