def __exit__(self, exc_type, exc_value, tb):
    if (self.isContext and self._opts['undoable']):
        commit(self._modifier.undoIt, self._modifier.doIt)
    self.doIt()
def __exit__(self, exc_type, exc_value, tb):
    if (self.isContext and self._opts['undoable']):
        commit(self._modifier.undoIt, self._modifier.doIt)
    self.doIt()