Commit e893af5a authored by Benjamin Peterson's avatar Benjamin Peterson

update error message

parent 13a7eb45
...@@ -2522,8 +2522,7 @@ recursive_isinstance(PyObject *inst, PyObject *cls) ...@@ -2522,8 +2522,7 @@ recursive_isinstance(PyObject *inst, PyObject *cls)
} }
else { else {
if (!check_class(cls, if (!check_class(cls,
"isinstance() arg 2 must be a class, type," "isinstance() arg 2 must be a type or tuple of types"))
" or tuple of classes and types"))
return -1; return -1;
icls = PyObject_GetAttr(inst, __class__); icls = PyObject_GetAttr(inst, __class__);
if (icls == NULL) { if (icls == NULL) {
......
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