mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Remove the PendingDeprecationWarning from apply(). apply() will
remain deprecated in the documentation.
This commit is contained in:
parent
f62444ab16
commit
d75ede3238
1 changed files with 0 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue