diff --git a/src/decode.c b/src/decode.c index 91bfabf34..cb018a4e7 100644 --- a/src/decode.c +++ b/src/decode.c @@ -235,7 +235,7 @@ _setfd(ImagingDecoderObject *decoder, PyObject *args) { } static PyObject * -_get_pulls_fd(ImagingDecoderObject *decoder) { +_get_pulls_fd(ImagingDecoderObject *decoder, void *closure) { return PyBool_FromLong(decoder->pulls_fd); } diff --git a/src/encode.c b/src/encode.c index 5933e79a5..2ecf9723b 100644 --- a/src/encode.c +++ b/src/encode.c @@ -299,7 +299,7 @@ _setfd(ImagingEncoderObject *encoder, PyObject *args) { } static PyObject * -_get_pushes_fd(ImagingEncoderObject *encoder) { +_get_pushes_fd(ImagingEncoderObject *encoder, void *closure) { return PyBool_FromLong(encoder->pushes_fd); }