Change error message for array methods to use 'array' instead of 'list'. (#1853)
This commit is contained in:
parent
163468a766
commit
a4095efc3f
|
@ -1090,7 +1090,7 @@ array_array_index(arrayobject *self, PyObject *v)
|
||||||
else if (cmp < 0)
|
else if (cmp < 0)
|
||||||
return NULL;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1142,7 +1142,7 @@ array_array_remove(arrayobject *self, PyObject *v)
|
||||||
else if (cmp < 0)
|
else if (cmp < 0)
|
||||||
return NULL;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue