@@ -403,7 +403,7 @@ buffered_dealloc(buffered *self)
403403}
404404
405405static PyObject *
406- buffered_sizeof (buffered * self , void * unused )
406+ buffered_sizeof (buffered * self , PyObject * Py_UNUSED ( ignored ) )
407407{
408408 Py_ssize_t res ;
409409
@@ -540,7 +540,7 @@ buffered_close(buffered *self, PyObject *args)
540540/* detach */
541541
542542static PyObject *
543- buffered_detach (buffered * self , PyObject * args )
543+ buffered_detach (buffered * self , PyObject * Py_UNUSED ( ignored ) )
544544{
545545 PyObject * raw , * res ;
546546 CHECK_INITIALIZED (self )
@@ -558,21 +558,21 @@ buffered_detach(buffered *self, PyObject *args)
558558/* Inquiries */
559559
560560static PyObject *
561- buffered_seekable (buffered * self , PyObject * args )
561+ buffered_seekable (buffered * self , PyObject * Py_UNUSED ( ignored ) )
562562{
563563 CHECK_INITIALIZED (self )
564564 return PyObject_CallMethodObjArgs (self -> raw , _PyIO_str_seekable , NULL );
565565}
566566
567567static PyObject *
568- buffered_readable (buffered * self , PyObject * args )
568+ buffered_readable (buffered * self , PyObject * Py_UNUSED ( ignored ) )
569569{
570570 CHECK_INITIALIZED (self )
571571 return PyObject_CallMethodObjArgs (self -> raw , _PyIO_str_readable , NULL );
572572}
573573
574574static PyObject *
575- buffered_writable (buffered * self , PyObject * args )
575+ buffered_writable (buffered * self , PyObject * Py_UNUSED ( ignored ) )
576576{
577577 CHECK_INITIALIZED (self )
578578 return PyObject_CallMethodObjArgs (self -> raw , _PyIO_str_writable , NULL );
@@ -595,14 +595,14 @@ buffered_mode_get(buffered *self, void *context)
595595/* Lower-level APIs */
596596
597597static PyObject *
598- buffered_fileno (buffered * self , PyObject * args )
598+ buffered_fileno (buffered * self , PyObject * Py_UNUSED ( ignored ) )
599599{
600600 CHECK_INITIALIZED (self )
601601 return PyObject_CallMethodObjArgs (self -> raw , _PyIO_str_fileno , NULL );
602602}
603603
604604static PyObject *
605- buffered_isatty (buffered * self , PyObject * args )
605+ buffered_isatty (buffered * self , PyObject * Py_UNUSED ( ignored ) )
606606{
607607 CHECK_INITIALIZED (self )
608608 return PyObject_CallMethodObjArgs (self -> raw , _PyIO_str_isatty , NULL );
@@ -611,7 +611,7 @@ buffered_isatty(buffered *self, PyObject *args)
611611/* Serialization */
612612
613613static PyObject *
614- buffered_getstate (buffered * self , PyObject * args )
614+ buffered_getstate (buffered * self , PyObject * Py_UNUSED ( ignored ) )
615615{
616616 PyErr_Format (PyExc_TypeError ,
617617 "cannot serialize '%s' object" , Py_TYPE (self )-> tp_name );
@@ -1202,7 +1202,7 @@ _io__Buffered_readline_impl(buffered *self, Py_ssize_t size)
12021202
12031203
12041204static PyObject *
1205- buffered_tell (buffered * self , PyObject * args )
1205+ buffered_tell (buffered * self , PyObject * Py_UNUSED ( ignored ) )
12061206{
12071207 Py_off_t pos ;
12081208
@@ -2207,33 +2207,33 @@ bufferedrwpair_write(rwpair *self, PyObject *args)
22072207}
22082208
22092209static PyObject *
2210- bufferedrwpair_flush (rwpair * self , PyObject * args )
2210+ bufferedrwpair_flush (rwpair * self , PyObject * Py_UNUSED ( ignored ) )
22112211{
2212- return _forward_call (self -> writer , & PyId_flush , args );
2212+ return _forward_call (self -> writer , & PyId_flush , NULL );
22132213}
22142214
22152215static PyObject *
2216- bufferedrwpair_readable (rwpair * self , PyObject * args )
2216+ bufferedrwpair_readable (rwpair * self , PyObject * Py_UNUSED ( ignored ) )
22172217{
2218- return _forward_call (self -> reader , & PyId_readable , args );
2218+ return _forward_call (self -> reader , & PyId_readable , NULL );
22192219}
22202220
22212221static PyObject *
2222- bufferedrwpair_writable (rwpair * self , PyObject * args )
2222+ bufferedrwpair_writable (rwpair * self , PyObject * Py_UNUSED ( ignored ) )
22232223{
2224- return _forward_call (self -> writer , & PyId_writable , args );
2224+ return _forward_call (self -> writer , & PyId_writable , NULL );
22252225}
22262226
22272227static PyObject *
2228- bufferedrwpair_close (rwpair * self , PyObject * args )
2228+ bufferedrwpair_close (rwpair * self , PyObject * Py_UNUSED ( ignored ) )
22292229{
22302230 PyObject * exc = NULL , * val , * tb ;
2231- PyObject * ret = _forward_call (self -> writer , & PyId_close , args );
2231+ PyObject * ret = _forward_call (self -> writer , & PyId_close , NULL );
22322232 if (ret == NULL )
22332233 PyErr_Fetch (& exc , & val , & tb );
22342234 else
22352235 Py_DECREF (ret );
2236- ret = _forward_call (self -> reader , & PyId_close , args );
2236+ ret = _forward_call (self -> reader , & PyId_close , NULL );
22372237 if (exc != NULL ) {
22382238 _PyErr_ChainExceptions (exc , val , tb );
22392239 Py_CLEAR (ret );
@@ -2242,17 +2242,17 @@ bufferedrwpair_close(rwpair *self, PyObject *args)
22422242}
22432243
22442244static PyObject *
2245- bufferedrwpair_isatty (rwpair * self , PyObject * args )
2245+ bufferedrwpair_isatty (rwpair * self , PyObject * Py_UNUSED ( ignored ) )
22462246{
2247- PyObject * ret = _forward_call (self -> writer , & PyId_isatty , args );
2247+ PyObject * ret = _forward_call (self -> writer , & PyId_isatty , NULL );
22482248
22492249 if (ret != Py_False ) {
22502250 /* either True or exception */
22512251 return ret ;
22522252 }
22532253 Py_DECREF (ret );
22542254
2255- return _forward_call (self -> reader , & PyId_isatty , args );
2255+ return _forward_call (self -> reader , & PyId_isatty , NULL );
22562256}
22572257
22582258static PyObject *
0 commit comments