8000 Fix PyArg_ParseTupleAndKeywords format string. · python/cpython@c69ee9d · GitHub
[go: up one dir, main page]

Skip to content

Commit c69ee9d

Browse files
committed
Fix PyArg_ParseTupleAndKeywords format string.
1 parent 6b515d3 commit c69ee9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/faulthandler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ faulthandler_dump_c_stack_py(PyObject *self,
340340
PyObject *file = NULL;
341341

342342
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
343-
"|Op:dump_c_stack", kwlist,
343+
"|p:dump_c_stack", kwlist,
344344
&file))
345345
return NULL;
346346

@@ -607,7 +607,7 @@ faulthandler_py_enable(PyObject *self, PyObject *args, PyObject *kwargs)
607607
PyThreadState *tstate;
608608

609609
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
610-
"|Op:enable", kwlist, &file, &all_threads, &c_stack))
610+
"|Opp:enable", kwlist, &file, &all_threads, &c_stack))
611611
return NULL;
612612

613613
fd = faulthandler_get_fileno(&file);

0 commit comments

Comments
 (0)
0