@@ -214,11 +214,11 @@ rf_close(rfobject *self, PyObject *args)
214214
215215
216216static struct PyMethodDef rf_methods [] = {
217- {"read" , (PyCFunction )rf_read , 1 , rf_read__doc__ },
218- {"write" , (PyCFunction )rf_write , 1 , rf_write__doc__ },
219- {"seek" , (PyCFunction )rf_seek , 1 , rf_seek__doc__ },
220- {"tell" , (PyCFunction )rf_tell , 1 , rf_tell__doc__ },
221- {"close" , (PyCFunction )rf_close , 1 , rf_close__doc__ },
217+ {"read" , (PyCFunction )rf_read , METH_VARARGS , rf_read__doc__ },
218+ {"write" , (PyCFunction )rf_write , METH_VARARGS , rf_write__doc__ },
219+ {"seek" , (PyCFunction )rf_seek , METH_VARARGS , rf_seek__doc__ },
220+ {"tell" , (PyCFunction )rf_tell , METH_VARARGS , rf_tell__doc__ },
221+ {"close" , (PyCFunction )rf_close , METH_VARARGS , rf_close__doc__ },
222222
223223 {NULL , NULL } /* sentinel */
224224};
@@ -584,15 +584,15 @@ MacOS_openrf(PyObject *self, PyObject *args)
584584
585585
586586static PyMethodDef MacOS_Methods [] = {
587- {"GetCreatorAndType" , MacOS_GetCreatorAndType , 1 , getcrtp_doc },
588- {"SetCreatorAndType" , MacOS_SetCreatorAndType , 1 , setcrtp_doc },
589- {"GetErrorString" , MacOS_GetErrorString , 1 , geterr_doc },
590- {"openrf" , MacOS_openrf , 1 , openrf_doc },
591- {"splash" , MacOS_splash , 1 , splash_doc },
592- {"DebugStr" , MacOS_DebugStr , 1 , DebugStr_doc },
593- {"GetTicks" , MacOS_GetTicks , 1 , GetTicks_doc },
594- {"SysBeep" , MacOS_SysBeep , 1 , SysBeep_doc },
595- {"WMAvailable" , MacOS_WMAvailable , 1 , WMAvailable_doc },
587+ {"GetCreatorAndType" , MacOS_GetCreatorAndType , METH_VARARGS , getcrtp_doc },
588+ {"SetCreatorAndType" , MacOS_SetCreatorAndType , METH_VARARGS , setcrtp_doc },
589+ {"GetErrorString" , MacOS_GetErrorString , METH_VARARGS , geterr_doc },
590+ {"openrf" , MacOS_openrf , METH_VARARGS , openrf_doc },
591+ {"splash" , MacOS_splash , METH_VARARGS , splash_doc },
592+ {"DebugStr" , MacOS_DebugStr , METH_VARARGS , DebugStr_doc },
593+ {"GetTicks" , MacOS_GetTicks , METH_VARARGS , GetTicks_doc },
594+ {"SysBeep" , MacOS_SysBeep , METH_VARARGS , SysBeep_doc },
595+ {"WMAvailable" , MacOS_WMAvailable , METH_VARARGS , WMAvailable_doc },
596596 {NULL , NULL } /* Sentinel */
597597};
598598
0 commit comments