summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-01-31 22:33:22 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-01-31 22:33:22 (GMT)
commitd85f1c01afebd1db5d9400ba83b6d90e0819ce79 (patch)
tree25b3410c5e17fe190413c4b32831cf3b24bca6ef /Python
parent22697c0c72f0c94b353ab0ea70e972c4b10acbe6 (diff)
downloadcpython-d85f1c01afebd1db5d9400ba83b6d90e0819ce79.zip
cpython-d85f1c01afebd1db5d9400ba83b6d90e0819ce79.tar.gz
cpython-d85f1c01afebd1db5d9400ba83b6d90e0819ce79.tar.bz2
Merged revisions 77892 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77892 | victor.stinner | 2010-01-31 23:32:15 +0100 (dim., 31 janv. 2010) | 4 lines Issue #7819: Check sys.call_tracing() arguments types. py3k was already patched by issue #3661. ........
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 10ba1cf..721f77d 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -802,7 +802,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);
}