bpo-29932: Fix small error message typos in arraymodule.c (GH-888) · python/cpython@a90e64b (original) (raw)

Original file line number Diff line number Diff line change
@@ -1920,7 +1920,7 @@ array__array_reconstructor_impl(PyObject *module, PyTypeObject *arraytype,
1920 1920
1921 1921 if (!PyType_Check(arraytype)) {
1922 1922 PyErr_Format(PyExc_TypeError,
1923 -"first argument must a type object, not %.200s",
1923 +"first argument must be a type object, not %.200s",
1924 1924 Py_TYPE(arraytype)->tp_name);
1925 1925 return NULL;
1926 1926 }
@@ -2143,7 +2143,7 @@ array_array___reduce_ex__(arrayobject *self, PyObject *value)
2143 2143
2144 2144 if (!PyLong_Check(value)) {
2145 2145 PyErr_SetString(PyExc_TypeError,
2146 -"__reduce_ex__ argument should an integer");
2146 +"__reduce_ex__ argument should be an integer");
2147 2147 return NULL;
2148 2148 }
2149 2149 protocol = PyLong_AsLong(value);
@@ -2368,7 +2368,7 @@ array_ass_subscr(arrayobject* self, PyObject* item, PyObject* value)
2368 2368 }
2369 2369 else {
2370 2370 PyErr_SetString(PyExc_TypeError,
2371 -"array indices must be integer");
2371 +"array indices must be integers");
2372 2372 return -1;
2373 2373 }
2374 2374 if (value == NULL) {