From: Fred Drake Date: Fri, 5 Dec 2003 17:33:55 +0000 (+0000) Subject: Remove the PendingDeprecationWarning from apply(). apply() will X-Git-Tag: v2.3.3~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d478ba0d0c014bbd755466ec1d6968903fd0e3b;p=thirdparty%2FPython%2Fcpython.git Remove the PendingDeprecationWarning from apply(). apply() will remain deprecated in the documentation. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index e10d16ba65f4..8c7e025494f1 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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) {