summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJim Fasarakis-Hilliard <d.f.hilliard@gmail.com>2017-05-29 17:43:39 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-05-29 17:43:39 (GMT)
commita4095efc3f26374a27cf8580a4f5ae4f7eb2f806 (patch)
tree30864bea264a03c688efc2dc9e139a83616abeda /Modules
parent163468a766e16604bdea04a1ab808c0d3e729e5d (diff)
downloadcpython-a4095efc3f26374a27cf8580a4f5ae4f7eb2f806.zip
cpython-a4095efc3f26374a27cf8580a4f5ae4f7eb2f806.tar.gz
cpython-a4095efc3f26374a27cf8580a4f5ae4f7eb2f806.tar.bz2
Change error message for array methods to use 'array' instead of 'list'. (#1853)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/arraymodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 412e39e..abb578a 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -1090,7 +1090,7 @@ array_array_index(arrayobject *self, PyObject *v)
else if (cmp < 0)
return NULL;
}
- PyErr_SetString(PyExc_ValueError, "array.index(x): x not in list");
+ PyErr_SetString(PyExc_ValueError, "array.index(x): x not in array");
return NULL;
}
@@ -1142,7 +1142,7 @@ array_array_remove(arrayobject *self, PyObject *v)
else if (cmp < 0)
return NULL;
}
- PyErr_SetString(PyExc_ValueError, "array.remove(x): x not in list");
+ PyErr_SetString(PyExc_ValueError, "array.remove(x): x not in array");
return NULL;
}