summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchgnrdv <52372310+chgnrdv@users.noreply.github.com>2022-09-26 16:12:19 (GMT)
committerGitHub <noreply@github.com>2022-09-26 16:12:19 (GMT)
commit85752decbfd733284ffdb8ae9c93b927765236c7 (patch)
tree5044ec3e98925478b279db7942381cd355fd43ee
parent41351662bcd21672d8ccfa62fe44d72027e6bcf8 (diff)
downloadcpython-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.c3
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.")},