Closure can't be NULL at this point since we know it's a tuple.

Reported by Klocwork # 74.
This commit is contained in:
Neal Norwitz 2006-07-27 03:55:39 +00:00
parent e4abc232d5
commit 101bac205d

View file

@ -141,7 +141,7 @@ PyFunction_SetClosure(PyObject *op, PyObject *closure)
if (closure == Py_None)
closure = NULL;
else if (PyTuple_Check(closure)) {
Py_XINCREF(closure);
Py_INCREF(closure);
}
else {
PyErr_Format(PyExc_SystemError,