(self)
Perform undo action
Perform undo action
Perform undo action
def undo(self):
        """Perform undo action"""

        action, args, kwargs = self._actions[self._next_undo - 1]
        self._next_undo -= 1

        if isinstance(action, Undo):
            yield from action.undo_all()
        else:
            yield action, args, kwargs
def undo ( self ) : action , args , kwargs = self . _actions [ self . _next_undo - 1 ] self . _next_undo -= 1 if isinstance ( action , Undo ) : yield from action . undo_all ( ) else : yield action , args , kwargs