From eb6e60babab73e769f49c183cfc46bb270ca84bd Mon Sep 17 00:00:00 2001 From: "Oleg S." Date: Fri, 7 Feb 2025 01:19:23 +0300 Subject: [PATCH] pyhacks: Update hack for io.BytesIO (3.8 ... 3.14) (#56) --- fastwsgi/pyhacks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastwsgi/pyhacks.c b/fastwsgi/pyhacks.c index 7682782..ed26722 100644 --- a/fastwsgi/pyhacks.c +++ b/fastwsgi/pyhacks.c @@ -14,7 +14,7 @@ bytesio_t * get_bytesio_object(PyObject * io_BytesIO) { if (PY_MAJOR_VERSION != 3) return NULL; - if (PY_MINOR_VERSION >= 8 && PY_MINOR_VERSION <= 11) + if (PY_MINOR_VERSION >= 8 && PY_MINOR_VERSION <= 14) return (bytesio_t *)io_BytesIO; return NULL; }