summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-03-03 15:12:58 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-03-03 15:12:58 (GMT)
commit290d31e2fc02a0d887da2c76fbe4e72377442a0a (patch)
tree5871169da82f3b2b5504ad07b3490260de501fb0 /Python
parent54e0eabc2d3343c1ab71f5fb90fdda2f06b606e1 (diff)
downloadcpython-290d31e2fc02a0d887da2c76fbe4e72377442a0a.zip
cpython-290d31e2fc02a0d887da2c76fbe4e72377442a0a.tar.gz
cpython-290d31e2fc02a0d887da2c76fbe4e72377442a0a.tar.bz2
SF #506611, fix sys.setprofile(), sys.settrace() core dumps
when no arguments are passed
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 90338de..3448e6a 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -564,10 +564,10 @@ static PyMethodDef sys_methods[] = {
{"setdlopenflags", sys_setdlopenflags, METH_VARARGS,
setdlopenflags_doc},
#endif
- {"setprofile", sys_setprofile, METH_OLDARGS, setprofile_doc},
+ {"setprofile", sys_setprofile, METH_O, setprofile_doc},
{"setrecursionlimit", sys_setrecursionlimit, METH_VARARGS,
setrecursionlimit_doc},
- {"settrace", sys_settrace, METH_OLDARGS, settrace_doc},
+ {"settrace", sys_settrace, METH_O, settrace_doc},
{NULL, NULL} /* sentinel */
};