mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Fix typo in docstring and remove duplicate signal.h include in faulthandler.c (#96720)
This fix corrects a typo in dump_traceback_later function docstring and removes duplicate signal.h include directive
This commit is contained in:
parent
41351662bc
commit
85752decbf
1 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include <object.h>
|
||||
#include <signal.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h> // abort()
|
||||
#if defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK) && defined(HAVE_PTHREAD_H)
|
||||
# include <pthread.h>
|
||||
|
@ -1241,7 +1240,7 @@ static PyMethodDef module_methods[] = {
|
|||
"if all_threads is True, into file")},
|
||||
{"dump_traceback_later",
|
||||
_PyCFunction_CAST(faulthandler_dump_traceback_later), METH_VARARGS|METH_KEYWORDS,
|
||||
PyDoc_STR("dump_traceback_later(timeout, repeat=False, file=sys.stderrn, exit=False):\n"
|
||||
PyDoc_STR("dump_traceback_later(timeout, repeat=False, file=sys.stderr, exit=False):\n"
|
||||
"dump the traceback of all threads in timeout seconds,\n"
|
||||
"or each timeout seconds if repeat is True. If exit is True, "
|
||||
"call _exit(1) which is not safe.")},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue