def begin_update(self): """Begins an update block.""" if self.in_update_block: raise RuntimeError('Artifact is already open for updates.') self.updated = False ctx = Context(self) ctx.push() self.in_update_block = True return ctx
def begin_update(self): """Begins an update block.""" if self.in_update_block: raise RuntimeError("Artifact is already open for updates.") self.updated = False ctx = Context(self) ctx.push() self.in_update_block = True return ctx
def begin_update(self): """Begins an update block.""" if self.in_update_block: raise RuntimeError("Artifact is already open for updates.") self.updated = False ctx = Context(self) ctx.push() self.in_update_block = True self.clear_dirty_flag() return ctx
def begin_update(self): """Begins an update block.""" if self.in_update_block: raise RuntimeError('Artifact is already open for updates.') self.updated = False ctx = Context(self) ctx.push() self.in_update_block = True self.clear_dirty_flag() return ctx