]> granicus.if.org Git - python/commitdiff
Improve TypeError exception message for list catenation.
authorFred Drake <fdrake@acm.org>
Thu, 1 Jun 2000 14:31:03 +0000 (14:31 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 1 Jun 2000 14:31:03 +0000 (14:31 +0000)
Objects/listobject.c

index 661a53bc559452ba5c9d0107cf72eb509a1b059a..922444edc118517d865fc18e1924568968b33f80 100644 (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)