diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-01-31 22:32:15 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-01-31 22:32:15 +0000 |
commit | b4b0a2935db54457f6876f1991905cc9b4fce6e9 (patch) | |
tree | 74255455a860b095406c5898a3139c863e1d3eac /Python/sysmodule.c | |
parent | f3fa07470381b4f54b2d3f911fc22624e9b0b27d (diff) | |
download | cpython-git-b4b0a2935db54457f6876f1991905cc9b4fce6e9.tar.gz |
Issue #7819: Check sys.call_tracing() arguments types.
py3k was already patched by issue #3661.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 3a991970cf..65a9d8f934 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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); } |