def doIt(self):
    if ((not self.isContext) and self._opts['undoable']):
        commit(self._modifier.undoIt, self._modifier.doIt)
    try:
        self._modifier.doIt()
    except RuntimeError:
        if self._opts['atomic']:
            self.undoIt()
        raise ModifierError(self._history)
    self.isDone = True
def doIt(self):
    if ((not self.isContext) and self._opts['undoable']):
        commit(self._modifier.undoIt, self._modifier.doIt)
    try:
        self._modifier.doIt()
    except RuntimeError:
        if self._opts['atomic']:
            self.undoIt()
        raise ModifierError(self._history)
    self.isDone = True