diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2003-06-16 18:51:28 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2003-06-16 18:51:28 (GMT) |
commit | a1ad5f658c6408c6a80fc648cb8d0fe23b77ed89 (patch) | |
tree | 0db72900876ae48fe22cfb8311c3ca10b8a6c4ce /Modules/threadmodule.c | |
parent | 73453757718f13af156356dabdd0dea7ccc396ba (diff) | |
download | cpython-a1ad5f658c6408c6a80fc648cb8d0fe23b77ed89.zip cpython-a1ad5f658c6408c6a80fc648cb8d0fe23b77ed89.tar.gz cpython-a1ad5f658c6408c6a80fc648cb8d0fe23b77ed89.tar.bz2 |
Correct function name.
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r-- | Modules/threadmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 2145977..24a32ae 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -279,7 +279,7 @@ This is synonymous to ``raise SystemExit''. It will cause the current\n\ 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 @@ PyDoc_STRVAR(interrupt_doc, "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 @@ static PyMethodDef thread_methods[] = { 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}, |