summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2008-10-17 01:29:56 +0000
committerBarry Warsaw <barry@python.org>2008-10-17 01:29:56 +0000
commite94a37f3a1b4bbd46f50922edcdf9293954fdd01 (patch)
treea8255b6e0181c51f0e43b4647c0d57e7193c3cb5 /Python
parent460ce2abf7dbb93ba1583c27176b9f0c8ea44232 (diff)
downloadcpython-git-e94a37f3a1b4bbd46f50922edcdf9293954fdd01.tar.gz
Benjamin Peterson's patch to fix bug 3661, sys.call_tracing segfaults.
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 10a87611c0..952f7e5904 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -783,7 +783,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);
}