Kaydet (Commit) a4095efc authored tarafından Jim Fasarakis-Hilliard's avatar Jim Fasarakis-Hilliard Kaydeden (comit) Serhiy Storchaka

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

üst 163468a7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment