diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 75a3461a9919f7..6dc9f80c35892b 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -9316,7 +9316,7 @@ wrap_buffer(PyObject *self, PyObject *args, void *wrapped) } if (flags > INT_MAX || flags < INT_MIN) { PyErr_SetString(PyExc_OverflowError, - "buffer flags too large"); + "buffer flags out of range"); return NULL; }