From a4095efc3f26374a27cf8580a4f5ae4f7eb2f806 Mon Sep 17 00:00:00 2001 From: Jim Fasarakis-Hilliard Date: Mon, 29 May 2017 20:43:39 +0300 Subject: Change error message for array methods to use 'array' instead of 'list'. (#1853) --- Modules/arraymodule.c | 4 ++-- 1 file 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; } -- cgit v0.12