summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSylvain <sylvain.desodt+github@gmail.com>2017-03-29 18:09:22 (GMT)
committerBrett Cannon <brettcannon@users.noreply.github.com>2017-03-29 18:09:22 (GMT)
commita90e64b78d74b80a7cbcca2237280c724b99431b (patch)
treeb180603b5df86df60055c979b67288f14448003d /Modules
parentc431854a0963d4ec2875efab2d2425a738895280 (diff)
downloadcpython-a90e64b78d74b80a7cbcca2237280c724b99431b.zip
cpython-a90e64b78d74b80a7cbcca2237280c724b99431b.tar.gz
cpython-a90e64b78d74b80a7cbcca2237280c724b99431b.tar.bz2
bpo-29932: Fix small error message typos in arraymodule.c (GH-888)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/arraymodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index b30f759..e067b30 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -1920,7 +1920,7 @@ array__array_reconstructor_impl(PyObject *module, PyTypeObject *arraytype,
if (!PyType_Check(arraytype)) {
PyErr_Format(PyExc_TypeError,
- "first argument must a type object, not %.200s",
+ "first argument must be a type object, not %.200s",
Py_TYPE(arraytype)->tp_name);
return NULL;
}
@@ -2143,7 +2143,7 @@ array_array___reduce_ex__(arrayobject *self, PyObject *value)
if (!PyLong_Check(value)) {
PyErr_SetString(PyExc_TypeError,
- "__reduce_ex__ argument should an integer");
+ "__reduce_ex__ argument should be an integer");
return NULL;
}
protocol = PyLong_AsLong(value);
@@ -2368,7 +2368,7 @@ array_ass_subscr(arrayobject* self, PyObject* item, PyObject* value)
}
else {
PyErr_SetString(PyExc_TypeError,
- "array indices must be integer");
+ "array indices must be integers");
return -1;
}
if (value == NULL) {