def commit(self) -> None:
    'Exit the transaction or savepoint block and commit changes.'
    if self._managed:
        raise errors.InterfaceError('cannot manually commit from within a `with` block')
    self._commit()
Exit the transaction or savepoint block and commit changes.
def commit(self) -> None:
    
    if self._managed:
        raise errors.InterfaceError('cannot manually commit from within a `with` block')
    self._commit()