mirror of
https://github.com/python/cpython.git
synced 2025-08-08 19:09:46 +00:00
remove py3k warning for callable
This commit is contained in:
parent
819d8d447d
commit
a5ae1f0c25
2 changed files with 2 additions and 3 deletions
|
@ -224,9 +224,6 @@ Return the binary representation of an integer or long integer.");
|
|||
static PyObject *
|
||||
builtin_callable(PyObject *self, PyObject *v)
|
||||
{
|
||||
if (PyErr_WarnPy3k("callable() not supported in 3.1; "
|
||||
"use isinstance(x, collections.Callable)", 1) < 0)
|
||||
return NULL;
|
||||
return PyBool_FromLong((long)PyCallable_Check(v));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue