]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove the PendingDeprecationWarning from apply(). apply() will
authorFred Drake <fdrake@acm.org>
Fri, 5 Dec 2003 17:33:55 +0000 (17:33 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 5 Dec 2003 17:33:55 +0000 (17:33 +0000)
remain deprecated in the documentation.

Python/bltinmodule.c

index e10d16ba65f416742f4c5828ffec838bbd7977f6..8c7e025494f1602de234998b2c34597498ca5a00 100644 (file)
@@ -75,10 +75,6 @@ builtin_apply(PyObject *self, PyObject *args)
        PyObject *func, *alist = NULL, *kwdict = NULL;
        PyObject *t = NULL, *retval = NULL;
 
-       if (PyErr_Warn(PyExc_PendingDeprecationWarning,
-                      "use func(*args, **kwargs) instead of "
-                      "apply(func, args, kwargs)") < 0)
-               return NULL;
        if (!PyArg_UnpackTuple(args, "apply", 1, 3, &func, &alist, &kwdict))
                return NULL;
        if (alist != NULL) {