Commit 94c30c01 authored by Neal Norwitz's avatar Neal Norwitz

SF #661437, apply() should get PendingDeprecation

parent 88af4dfa
......@@ -73,6 +73,9 @@ builtin_apply(PyObject *self, PyObject *args)
PyObject *func, *alist = NULL, *kwdict = NULL;
PyObject *t = NULL, *retval = NULL;
PyErr_Warn(PyExc_PendingDeprecationWarning,
"use func(*args, **kwargs) instead of "
"apply(func, args, kwargs)");
if (!PyArg_UnpackTuple(args, "apply", 1, 3, &func, &alist, &kwdict))
return NULL;
if (alist != NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment