4028 static PyObject *
4029 discard_transaction (PyObject *self, PyObject *args, PyObject *keywds)
4030 {
4031 arm_error_t status;
4032 ArmHandle *tran_handle;
4033
4034 /*
4035 * Supported calling signatures:
4036 * discard_transaction (tran_handle)
4037 */
4038 static char *kwlist[] = {"tran_handle", NULL};
4039
4040 if (!PyArg_ParseTupleAndKeywords(args, keywds, "O:discard_transaction", kwlist, &tran_handle))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
4041 return NULL;
4042 if (!ArmHandle_Object_Check(tran_handle))
when taking False path
4043 return NULL;
4044
4045 status = arm_discard_transaction(
4046 tran_handle->arm_handle,
4047 0,
4048 NULL); /* No buffers defined */
4049 if (GETSTATE0->enableExceptions && (status != ARM_SUCCESS))
when considering range: 1 <= value <= 0x7fffffff
when considering range: -0x80000000 <= value <= -1
taking True path
4050 {
4051 set_arm_error (status, "arm_discard_transaction");
4052 return NULL;
4053 }
4054
4055 /* Empty return */
4056 Py_INCREF(Py_None);
4057 return Py_None;
4058 }
returning (PyObject*)NULL without setting an exception
found 11 similar trace(s) to this