[Python-checkins] fix grammr in error messages in overlapped.c (GH-3095)
Brett Cannon
webhook-mailer at python.org
Tue Aug 15 12:04:22 EDT 2017
https://github.com/python/cpython/commit/d83c23b2dbe91924d0070a72ffe831d0c15d956d
commit: d83c23b2dbe91924d0070a72ffe831d0c15d956d
branch: master
author: Oren Milman <orenmn at gmail.com>
committer: Brett Cannon <brettcannon at users.noreply.github.com>
date: 2017-08-15T09:04:18-07:00
summary:
fix grammr in error messages in overlapped.c (GH-3095)
files:
M Modules/overlapped.c
diff --git a/Modules/overlapped.c b/Modules/overlapped.c
index 0aa8657898d..4390e9ae93c 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
More information about the Python-checkins
mailing list