mirror of
https://github.com/python/cpython.git
synced 2025-07-27 21:24:32 +00:00
Issue #7819: Check sys.call_tracing() arguments types.
py3k was already patched by issue #3661.
This commit is contained in:
parent
f3fa074703
commit
b4b0a2935d
3 changed files with 7 additions and 1 deletions
|
@ -840,7 +840,7 @@ static PyObject *
|
|||
sys_call_tracing(PyObject *self, PyObject *args)
|
||||
{
|
||||
PyObject *func, *funcargs;
|
||||
if (!PyArg_UnpackTuple(args, "call_tracing", 2, 2, &func, &funcargs))
|
||||
if (!PyArg_ParseTuple(args, "OO!:call_tracing", &func, &PyTuple_Type, &funcargs))
|
||||
return NULL;
|
||||
return _PyEval_CallTracing(func, funcargs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue