This commit is contained in:
Kovid Goyal
2024-07-29 21:27:42 +05:30
parent b52275e0b5
commit 8b54d19326

View File

@@ -111,7 +111,7 @@ typedef struct StreamingBase64Decoder {
} StreamingBase64Decoder;
static int
StreamingBase64Decoder_init(PyObject *s, PyObject *args UNUSED, PyObject *kwds UNUSED) {
StreamingBase64Decoder_init(PyObject *s, PyObject *args, PyObject *kwds UNUSED) {
if (PyTuple_GET_SIZE(args)) { PyErr_SetString(PyExc_TypeError, "constructor takes no arguments"); return -1; }
StreamingBase64Decoder *self = (StreamingBase64Decoder*)s;
base64_stream_decode_init(&self->state, 0);