cpython: Issue #11393: Fix the documentation (cancel_dump_traceback_later)

http://hg.python.org/cpython/rev/a6d2c703586a changeset: 69074:a6d2c703586a user: Victor Stinner <victor.stinner@haypocalc.com> date: Thu Mar 31 03:42:34 2011 +0200 summary: Issue #11393: Fix the documentation (cancel_dump_traceback_later) * dump_traceback_later() => dump_tracebacks_later() * cancel_dump_traceback_later() => cancel_dump_tracebacks_later() files: Doc/library/faulthandler.rst | 6 +++--- Modules/faulthandler.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Doc/library/faulthandler.rst b/Doc/library/faulthandler.rst --- a/Doc/library/faulthandler.rst +++ b/Doc/library/faulthandler.rst @@ -78,9 +78,9 @@ This function is implemented using a watchdog thread, and therefore is not available if Python is compiled with threads disabled. -.. function:: cancel_dump_traceback_later() +.. function:: cancel_dump_tracebacks_later() - Cancel the last call to :func:`dump_traceback_later`. + Cancel the last call to :func:`dump_tracebacks_later`. Dump the traceback on a user signal @@ -105,7 +105,7 @@ File descriptor issue --------------------- -:func:`enable`, :func:`dump_traceback_later` and :func:`register` keep the +:func:`enable`, :func:`dump_tracebacks_later` and :func:`register` keep the file descriptor of their *file* argument. If the file is closed and its file descriptor is reused by a new file, or if :func:`os.dup2` is used to replace the file descriptor, the traceback will be written into a different file. Call diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -420,7 +420,7 @@ } static void -faulthandler_cancel_dump_traceback_later(void) +faulthandler_cancel_dump_tracebacks_later(void) { if (thread.running) { /* Notify cancellation */ @@ -465,7 +465,7 @@ return NULL; /* Cancel previous thread, if running */ - faulthandler_cancel_dump_traceback_later(); + faulthandler_cancel_dump_tracebacks_later(); Py_XDECREF(thread.file); Py_INCREF(file); @@ -493,9 +493,9 @@ } static PyObject* -faulthandler_cancel_dump_traceback_later_py(PyObject *self) +faulthandler_cancel_dump_tracebacks_later_py(PyObject *self) { - faulthandler_cancel_dump_traceback_later(); + faulthandler_cancel_dump_tracebacks_later(); Py_RETURN_NONE; } #endif /* FAULTHANDLER_LATER */ @@ -799,7 +799,7 @@ "dump the traceback of all threads in timeout seconds,\n" "or each timeout seconds if repeat is True.")}, {"cancel_dump_tracebacks_later", - (PyCFunction)faulthandler_cancel_dump_traceback_later_py, METH_NOARGS, + (PyCFunction)faulthandler_cancel_dump_tracebacks_later_py, METH_NOARGS, PyDoc_STR("cancel_dump_tracebacks_later():\ncancel the previous call " "to dump_tracebacks_later().")}, #endif @@ -939,7 +939,7 @@ #ifdef FAULTHANDLER_LATER /* later */ - faulthandler_cancel_dump_traceback_later(); + faulthandler_cancel_dump_tracebacks_later(); if (thread.cancel_event) { PyThread_free_lock(thread.cancel_event); thread.cancel_event = NULL; -- Repository URL: http://hg.python.org/cpython
participants (1)
-
victor.stinner