fix grammr in error messages in overlapped.c (GH-3095)

This commit is contained in:
Oren Milman 2017-08-15 19:04:18 +03:00 committed by Brett Cannon
parent 7b40cb7293
commit d83c23b2db
1 changed files with 2 additions and 2 deletions

View File

@ -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