summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-17 06:39:28 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-17 06:39:28 (GMT)
commitb6a9c9761ca988e1ab69defd45433fac0b2ff89c (patch)
tree0071290253b0ef28f62f3f22d69be89db2abad50 /Modules/_io
parent5562563dd4a745ecac8e6830b2a15042beb5dd47 (diff)
parent6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d (diff)
downloadcpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.zip
cpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.tar.gz
cpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.tar.bz2
Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error
messages.
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/stringio.c2
-rw-r--r--Modules/_io/textio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c
index 73018a5..e856e2b 100644
--- a/Modules/_io/stringio.c
+++ b/Modules/_io/stringio.c
@@ -438,7 +438,7 @@ stringio_iternext(stringio *self)
_PyIO_str_readline, NULL);
if (line && !PyUnicode_Check(line)) {
PyErr_Format(PyExc_IOError,
- "readline() should have returned an str object, "
+ "readline() should have returned a str object, "
"not '%.200s'", Py_TYPE(line)->tp_name);
Py_DECREF(line);
return NULL;
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index 9af07bf..96c8e7b 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -2689,7 +2689,7 @@ textiowrapper_iternext(textio *self)
_PyIO_str_readline, NULL);
if (line && !PyUnicode_Check(line)) {
PyErr_Format(PyExc_IOError,
- "readline() should have returned an str object, "
+ "readline() should have returned a str object, "
"not '%.200s'", Py_TYPE(line)->tp_name);
Py_DECREF(line);
return NULL;