summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-08-30 20:21:19 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-08-30 20:21:19 (GMT)
commit39d87b54715197ca9dcb6902bb43461c0ed701a2 (patch)
tree778362acb785069882291e2e39f64fd395d73889 /Modules/_io
parent15119bc2a7e902ae1c6988556c3bef3de87fa789 (diff)
downloadcpython-39d87b54715197ca9dcb6902bb43461c0ed701a2.zip
cpython-39d87b54715197ca9dcb6902bb43461c0ed701a2.tar.gz
cpython-39d87b54715197ca9dcb6902bb43461c0ed701a2.tar.bz2
Fix typos mostly in comments, docs and test names (GH-15209)
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/bytesio.c2
-rw-r--r--Modules/_io/stringio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c
index 793ce92..a5f4c47 100644
--- a/Modules/_io/bytesio.c
+++ b/Modules/_io/bytesio.c
@@ -841,7 +841,7 @@ bytesio_setstate(bytesio *self, PyObject *state)
/* Set carefully the position value. Alternatively, we could use the seek
method instead of modifying self->pos directly to better protect the
- object internal state against errneous (or malicious) inputs. */
+ object internal state against erroneous (or malicious) inputs. */
position_obj = PyTuple_GET_ITEM(state, 1);
if (!PyLong_Check(position_obj)) {
PyErr_Format(PyExc_TypeError,
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c
index 810cad6..3f7afad 100644
--- a/Modules/_io/stringio.c
+++ b/Modules/_io/stringio.c
@@ -899,7 +899,7 @@ stringio_setstate(stringio *self, PyObject *state)
/* Set carefully the position value. Alternatively, we could use the seek
method instead of modifying self->pos directly to better protect the
- object internal state against errneous (or malicious) inputs. */
+ object internal state against erroneous (or malicious) inputs. */
position_obj = PyTuple_GET_ITEM(state, 2);
if (!PyLong_Check(position_obj)) {
PyErr_Format(PyExc_TypeError,