diff options
author | Oren Milman <orenmn@gmail.com> | 2017-08-15 16:04:18 (GMT) |
---|---|---|
committer | Brett Cannon <brettcannon@users.noreply.github.com> | 2017-08-15 16:04:18 (GMT) |
commit | d83c23b2dbe91924d0070a72ffe831d0c15d956d (patch) | |
tree | 4d1a83819fbbbc324614dba04bca607e61f72f36 /Modules | |
parent | 7b40cb7293cb14e5c7c8ed123efaf9acb33edae2 (diff) | |
download | cpython-d83c23b2dbe91924d0070a72ffe831d0c15d956d.zip cpython-d83c23b2dbe91924d0070a72ffe831d0c15d956d.tar.gz cpython-d83c23b2dbe91924d0070a72ffe831d0c15d956d.tar.bz2 |
fix grammr in error messages in overlapped.c (GH-3095)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/overlapped.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/overlapped.c b/Modules/overlapped.c index 0aa8657..4390e9a 100644 --- a/Modules/overlapped.c +++ b/Modules/overlapped.c @@ -837,7 +837,7 @@ Overlapped_WriteFile(OverlappedObject *self, PyObject *args) #if SIZEOF_SIZE_T > SIZEOF_LONG if (self->write_buffer.len > (Py_ssize_t)ULONG_MAX) { PyBuffer_Release(&self->write_buffer); - PyErr_SetString(PyExc_ValueError, "buffer to large"); + PyErr_SetString(PyExc_ValueError, "buffer too large"); return NULL; } #endif @@ -893,7 +893,7 @@ Overlapped_WSASend(OverlappedObject *self, PyObject *args) #if SIZEOF_SIZE_T > SIZEOF_LONG if (self->write_buffer.len > (Py_ssize_t)ULONG_MAX) { PyBuffer_Release(&self->write_buffer); - PyErr_SetString(PyExc_ValueError, "buffer to large"); + PyErr_SetString(PyExc_ValueError, "buffer too large"); return NULL; } #endif |