From 9a6bcc7706748b6177d3851e3115bf4efa1e8a08 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 16 Nov 2024 00:03:06 +0100 Subject: [PATCH] Update Objects/typeobject.c Co-authored-by: Jelle Zijlstra --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }