Skip to content

Commit 0811a44

Browse files
committed
Merged revisions 76350 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76350 | benjamin.peterson | 2009-11-17 15:24:54 -0600 (Tue, 17 Nov 2009) | 1 line a better callable replacement ........
1 parent 577e370 commit 0811a44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Python/bltinmodule.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static PyObject *
224224
builtin_callable(PyObject *self, PyObject *v)
225225
{
226226
if (PyErr_WarnPy3k("callable() not supported in 3.x; "
227-
"use hasattr(o, '__call__')", 1) < 0)
227+
"use isinstance(x, collections.Callable)", 1) < 0)
228228
return NULL;
229229
return PyBool_FromLong((long)PyCallable_Check(v));
230230
}

0 commit comments

Comments
 (0)