diff options
author | chgnrdv <52372310+chgnrdv@users.noreply.github.com> | 2022-09-26 16:12:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 16:12:19 (GMT) |
commit | 85752decbfd733284ffdb8ae9c93b927765236c7 (patch) | |
tree | 5044ec3e98925478b279db7942381cd355fd43ee | |
parent | 41351662bcd21672d8ccfa62fe44d72027e6bcf8 (diff) | |
download | cpython-85752decbfd733284ffdb8ae9c93b927765236c7.zip cpython-85752decbfd733284ffdb8ae9c93b927765236c7.tar.gz cpython-85752decbfd733284ffdb8ae9c93b927765236c7.tar.bz2 |
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
-rw-r--r-- | Modules/faulthandler.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 8b5cf27..2f6a219 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -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.")}, |