Commits

Benjamin Peterson committed 39573be

remove py3k warning for callable

  • Participants
  • Parent commits 0f0eda4
  • Branches 2.7

Comments (0)

Files changed (2)

 Core and Builtins
 -----------------
 
+- Remove Py3k warning for callable.
+
 - Issue #13340: Accept None as start and stop parameters for
   list.index() and tuple.index().
 

File Python/bltinmodule.c

 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));
 }