diff Modules/threadmodule.c @ 29498:1402f265e48f legacy-trunk

Correct function name.
author Kurt B. Kaiser <kbk@shore.net>
date Mon, 16 Jun 2003 18:51:28 +0000
parents 8d160095eb66
children 2281140d20c7 846b3ee7e106
line wrap: on
line diff
--- a/Modules/threadmodule.c	Mon Jun 16 18:46:42 2003 +0000
+++ b/Modules/threadmodule.c	Mon Jun 16 18:51:28 2003 +0000
@@ -279,7 +279,7 @@
 thread to exit silently unless the exception is caught.");
 
 static PyObject *
-sys_interrupt_main(PyObject * self, PyObject * args)
+thread_PyThread_interrupt_main(PyObject * self)
 {
 	PyErr_SetInterrupt();
 	Py_INCREF(Py_None);
@@ -290,7 +290,7 @@
 "interrupt_main()\n\
 \n\
 Raise a KeyboardInterrupt in the main thread.\n\
-A subthread can use this method to interrupt the main thread."
+A subthread can use this function to interrupt the main thread."
 );
 
 #ifndef NO_EXIT_PROG
@@ -355,7 +355,7 @@
 	 METH_NOARGS, exit_doc},
 	{"exit",		(PyCFunction)thread_PyThread_exit_thread, 
 	 METH_NOARGS, exit_doc},
-	{"interrupt_main",	(PyCFunction)sys_interrupt_main,
+	{"interrupt_main",	(PyCFunction)thread_PyThread_interrupt_main,
 	 METH_NOARGS, interrupt_doc},
 	{"get_ident",		(PyCFunction)thread_get_ident, 
 	 METH_NOARGS, get_ident_doc},