Kaydet (Commit) a5ae1f0c authored tarafından Benjamin Peterson's avatar Benjamin Peterson

remove py3k warning for callable

üst 819d8d44
...@@ -9,6 +9,8 @@ What's New in Python 2.7.3? ...@@ -9,6 +9,8 @@ What's New in Python 2.7.3?
Core and Builtins Core and Builtins
----------------- -----------------
- Remove Py3k warning for callable.
- Issue #13340: Accept None as start and stop parameters for - Issue #13340: Accept None as start and stop parameters for
list.index() and tuple.index(). list.index() and tuple.index().
......
...@@ -224,9 +224,6 @@ Return the binary representation of an integer or long integer."); ...@@ -224,9 +224,6 @@ Return the binary representation of an integer or long integer.");
static PyObject * static PyObject *
builtin_callable(PyObject *self, PyObject *v) 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)); return PyBool_FromLong((long)PyCallable_Check(v));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment