Improve TypeError exception message for list catenation.

This commit is contained in:
Fred Drake 2000-06-01 14:31:03 +00:00
parent b6a9ada757
commit 914a2edb24
1 changed files with 2 additions and 2 deletions

View File

@ -389,8 +389,8 @@ list_concat(a, bb)
PyListObject *np;
if (!PyList_Check(bb)) {
PyErr_Format(PyExc_TypeError,
"can only append list (not \"%.200s\") to list",
bb->ob_type->tp_name);
"can only concatenate list (not \"%.200s\") to list",
bb->ob_type->tp_name);
return NULL;
}
#define b ((PyListObject *)bb)