Commit aee2d5f9 authored by Thomas Heller's avatar Thomas Heller

Better isinstance error message.

Closes SF patch # 560250.

Bugfix candidate IMO.
parent dc8412e5
......@@ -1976,7 +1976,8 @@ PyObject_IsInstance(PyObject *inst, PyObject *cls)
/* Do not mask errors. */
if (!PyErr_Occurred())
PyErr_SetString(PyExc_TypeError,
"isinstance() arg 2 must be a class or type");
"isinstance() arg 2 must be a class, type,"
" or tuple of classes and types");
return -1;
}
Py_DECREF(cls_bases);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment