Skip to content

Commit a90e64b

Browse files
SylvainDebrettcannon
authored andcommitted
bpo-29932: Fix small error message typos in arraymodule.c (GH-888)
1 parent c431854 commit a90e64b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/arraymodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ array__array_reconstructor_impl(PyObject *module, PyTypeObject *arraytype,
19201920

19211921
if (!PyType_Check(arraytype)) {
19221922
PyErr_Format(PyExc_TypeError,
1923-
"first argument must a type object, not %.200s",
1923+
"first argument must be a type object, not %.200s",
19241924
Py_TYPE(arraytype)->tp_name);
19251925
return NULL;
19261926
}
@@ -2143,7 +2143,7 @@ array_array___reduce_ex__(arrayobject *self, PyObject *value)
21432143

21442144
if (!PyLong_Check(value)) {
21452145
PyErr_SetString(PyExc_TypeError,
2146-
"__reduce_ex__ argument should an integer");
2146+
"__reduce_ex__ argument should be an integer");
21472147
return NULL;
21482148
}
21492149
protocol = PyLong_AsLong(value);
@@ -2368,7 +2368,7 @@ array_ass_subscr(arrayobject* self, PyObject* item, PyObject* value)
23682368
}
23692369
else {
23702370
PyErr_SetString(PyExc_TypeError,
2371-
"array indices must be integer");
2371+
"array indices must be integers");
23722372
return -1;
23732373
}
23742374
if (value == NULL) {

0 commit comments

Comments
 (0)