4256 static PyObject *
4257 unbind_thread (PyObject *self, PyObject *args, PyObject *keywds)
4258 {
4259 arm_error_t status;
4260 ArmHandle *tran_handle;
4261
4262 /*
4263 * Supported calling signatures:
4264 * unbind_thread (tran_handle)
4265 */
4266 static char *kwlist[] = {"tran_handle", NULL};
4267
4268 if (!PyArg_ParseTupleAndKeywords(args, keywds, "O:unbind_thread", kwlist, &tran_handle))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
4269 return NULL;
4270 if (!ArmHandle_Object_Check(tran_handle))
when taking False path
4271 return NULL;
4272
4273 status = arm_unbind_thread(
4274 tran_handle->arm_handle,
4275 0,
4276 NULL);
4277 if (GETSTATE0->enableExceptions && (status != ARM_SUCCESS))
when considering range: 1 <= value <= 0x7fffffff
when considering range: -0x80000000 <= value <= -1
taking True path
4278 {
4279 set_arm_error (status, "arm_unbind_thread");
4280 return NULL;
4281 }
4282
4283 /* Empty return */
4284 Py_INCREF(Py_None);
4285 return Py_None;
4286 }
returning (PyObject*)NULL without setting an exception
found 11 similar trace(s) to this