Change error message for array methods to use 'array' instead of 'list'. (#1853)

This commit is contained in:
Jim Fasarakis-Hilliard 2017-05-29 20:43:39 +03:00 committed by Serhiy Storchaka
parent 163468a766
commit a4095efc3f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}