summaryrefslogtreecommitdiffstats
path: root/Modules/threadmodule.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-08-03 02:06:16 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-08-03 02:06:16 (GMT)
commite365fb8d1ff062d619f9476265e48e9ba8ab2bf6 (patch)
treecb80331534a82abbadb7d45e9f654c3e97b1b3f5 /Modules/threadmodule.c
parent14f515844d3eae2818af3f1da7b32c38d8e73078 (diff)
downloadcpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.zip
cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.gz
cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.bz2
Use METH_VARARGS instead of numeric constant 1 in method def. tables
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r--Modules/threadmodule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index ef73c26..5d0de4a 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -337,9 +337,11 @@ be relied upon, and the number should be seen purely as a magic cookie.\n\
A thread's identity may be reused for another thread after it exits.";
static PyMethodDef thread_methods[] = {
- {"start_new_thread", (PyCFunction)thread_PyThread_start_new_thread, 1,
+ {"start_new_thread", (PyCFunction)thread_PyThread_start_new_thread,
+ METH_VARARGS,
start_new_doc},
- {"start_new", (PyCFunction)thread_PyThread_start_new_thread, 1,
+ {"start_new", (PyCFunction)thread_PyThread_start_new_thread,
+ METH_VARARGS,
start_new_doc},
{"allocate_lock", (PyCFunction)thread_PyThread_allocate_lock, 0,
allocate_doc},