@@ -141,12 +141,18 @@ static char locked_doc[] =
141141Return whether the lock is in the locked state." ;
142142
143143static PyMethodDef lock_methods [] = {
144- {"acquire_lock" , (PyCFunction )lock_PyThread_acquire_lock , 0 , acquire_doc },
145- {"acquire" , (PyCFunction )lock_PyThread_acquire_lock , 0 , acquire_doc },
146- {"release_lock" , (PyCFunction )lock_PyThread_release_lock , 0 , release_doc },
147- {"release" , (PyCFunction )lock_PyThread_release_lock , 0 , release_doc },
148- {"locked_lock" , (PyCFunction )lock_locked_lock , 0 , locked_doc },
149- {"locked" , (PyCFunction )lock_locked_lock , 0 , locked_doc },
144+ {"acquire_lock" , (PyCFunction )lock_PyThread_acquire_lock ,
145+ METH_OLDARGS , acquire_doc },
146+ {"acquire" , (PyCFunction )lock_PyThread_acquire_lock ,
147+ METH_OLDARGS , acquire_doc },
148+ {"release_lock" , (PyCFunction )lock_PyThread_release_lock ,
149+ METH_OLDARGS , release_doc },
150+ {"release" , (PyCFunction )lock_PyThread_release_lock ,
151+ METH_OLDARGS , release_doc },
152+ {"locked_lock" , (PyCFunction )lock_locked_lock ,
153+ METH_OLDARGS , locked_doc },
154+ {"locked" , (PyCFunction )lock_locked_lock ,
155+ METH_OLDARGS , locked_doc },
150156 {NULL , NULL } /* sentinel */
151157};
152158
@@ -343,16 +349,16 @@ static PyMethodDef thread_methods[] = {
343349 {"start_new" , (PyCFunction )thread_PyThread_start_new_thread ,
344350 METH_VARARGS ,
345351 start_new_doc },
346- {"allocate_lock" , (PyCFunction )thread_PyThread_allocate_lock , 0 ,
347- allocate_doc },
348- {"allocate" , (PyCFunction )thread_PyThread_allocate_lock , 0 ,
349- allocate_doc },
350- {"exit_thread" , (PyCFunction )thread_PyThread_exit_thread , 0 ,
351- exit_doc },
352- {"exit" , (PyCFunction )thread_PyThread_exit_thread , 0 ,
353- exit_doc },
354- {"get_ident" , (PyCFunction )thread_get_ident , 0 ,
355- get_ident_doc },
352+ {"allocate_lock" , (PyCFunction )thread_PyThread_allocate_lock ,
353+ METH_OLDARGS , allocate_doc },
354+ {"allocate" , (PyCFunction )thread_PyThread_allocate_lock ,
355+ METH_OLDARGS , allocate_doc },
356+ {"exit_thread" , (PyCFunction )thread_PyThread_exit_thread ,
357+ METH_OLDARGS , exit_doc },
358+ {"exit" , (PyCFunction )thread_PyThread_exit_thread ,
359+ METH_OLDARGS , exit_doc },
360+ {"get_ident" , (PyCFunction )thread_get_ident ,
361+ METH_OLDARGS , get_ident_doc },
356362#ifndef NO_EXIT_PROG
357363 {"exit_prog" , (PyCFunction )thread_PyThread_exit_prog },
358364#endif
0 commit comments