summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-11-06 08:20:12 -0500
committerBenjamin Peterson <benjamin@python.org>2011-11-06 08:20:12 -0500
commita5ae1f0c25212a48dc839de86d9f29312f6c0a3a (patch)
tree1540948ad6fd8551e1f7be62ba5d96db06d7a923 /Python/bltinmodule.c
parent819d8d447da7e2a8530574af2a7574fdc011b0c2 (diff)
downloadcpython-git-a5ae1f0c25212a48dc839de86d9f29312f6c0a3a.tar.gz
remove py3k warning for callable
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index a9a7ad1009..c25588a45e 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -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));
}