pyhacks: Update hack for io.BytesIO (3.8 ... 3.14) (#56)

This commit is contained in:
Oleg S.
2025-02-07 01:19:23 +03:00
committed by GitHub
parent 5572bb31b8
commit eb6e60baba

View File

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