Fix handlers for 'with' syntax in Transaction object

This commit is contained in:
John J. Camilleri
2021-09-21 23:54:55 +02:00
parent 4af807c982
commit 60c9ab4c53
3 changed files with 13 additions and 8 deletions

View File

@@ -47,6 +47,7 @@ Transaction_commit(TransactionObject *self, PyObject *args)
return NULL;
}
pgf_free_revision(self->pgf->db, self->pgf->revision);
self->pgf->revision = self->revision;
Py_RETURN_TRUE;
@@ -156,10 +157,10 @@ Transaction_dropCategory(TransactionObject *self, PyObject *args)
Py_RETURN_NONE;
}
static PyObject *
static TransactionObject *
Transaction_enter(TransactionObject *self, PyObject *Py_UNUSED(ignored))
{
Py_RETURN_TRUE;
return self;
}
static PyObject *