@@ -404,27 +404,27 @@ static PyMethodDef stdprinter_methods[] = {
404
404
};
405
405
406
406
static PyObject *
407
- get_closed (PyStdPrinter_Object * self , void * closure )
407
+ get_closed (PyObject * self , void * Py_UNUSED ( closure ) )
408
408
{
409
409
Py_RETURN_FALSE ;
410
410
}
411
411
412
412
static PyObject *
413
- get_mode (PyStdPrinter_Object * self , void * closure )
413
+ get_mode (PyObject * self , void * Py_UNUSED ( closure ) )
414
414
{
415
415
return PyUnicode_FromString ("w" );
416
416
}
417
417
418
418
static PyObject *
419
- get_encoding (PyStdPrinter_Object * self , void * closure )
419
+ get_encoding (PyObject * self , void * Py_UNUSED ( closure ) )
420
420
{
421
421
Py_RETURN_NONE ;
422
422
}
423
423
424
424
static PyGetSetDef stdprinter_getsetlist [] = {
425
- {"closed" , ( getter ) get_closed , NULL , "True if the file is closed" },
426
- {"encoding" , ( getter ) get_encoding , NULL , "Encoding of the file" },
427
- {"mode" , ( getter ) get_mode , NULL , "String giving the file mode" },
425
+ {"closed" , get_closed , NULL , "True if the file is closed" },
426
+ {"encoding" , get_encoding , NULL , "Encoding of the file" },
427
+ {"mode" , get_mode , NULL , "String giving the file mode" },
428
428
{0 },
429
429
};
430
430
0 commit comments