summaryrefslogtreecommitdiff
path: root/Objects/listobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 9fb3e8250b..e595c85082 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -644,7 +644,7 @@ listextend_internal(PyListObject *self, PyObject *b)
static PyObject *
list_inplace_concat(PyListObject *self, PyObject *other)
{
- other = PySequence_Fast(other, "argument to += must be a sequence");
+ other = PySequence_Fast(other, "argument to += must be iterable");
if (!other)
return NULL;
@@ -664,7 +664,7 @@ listextend(PyListObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "O:extend", &b))
return NULL;
- b = PySequence_Fast(b, "list.extend() argument must be a sequence");
+ b = PySequence_Fast(b, "list.extend() argument must be iterable");
if (!b)
return NULL;