This commit is contained in:
Kovid Goyal 2024-07-29 21:27:42 +05:30
parent b52275e0b5
commit 8b54d19326
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

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);