diff Python/bltinmodule.c @ 73402:39573be48b4a 2.7

remove py3k warning for callable
author Benjamin Peterson <benjamin@python.org>
date Sun, 06 Nov 2011 08:20:12 -0500
parents b57ace63286b
children d7aff4423172
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sat Nov 05 23:18:06 2011 +0200
+++ b/Python/bltinmodule.c	Sun Nov 06 08:20:12 2011 -0500
@@ -224,9 +224,6 @@
 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));
 }