]> granicus.if.org Git - python/commitdiff
Remove the PendingDeprecationWarning from apply(). apply() will
authorFred Drake <fdrake@acm.org>
Fri, 5 Dec 2003 17:34:27 +0000 (17:34 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 5 Dec 2003 17:34:27 +0000 (17:34 +0000)
remain deprecated in the documentation.

Python/bltinmodule.c

index 2fb8206003d79c8e26e6d3e9827843e4420a8d9d..9d6378bd78880eed858a4d4e16db8ae156c3c889 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) {