summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-07-08 00:07:45 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-07-08 00:07:45 (GMT)
commitba8b3a2ca7a43684cf67b174a4b245b8ba596a5c (patch)
treeac4944546147e094877e4163b1c2ccf868a4775b /Python
parent885b164bfe9907dcedc4c9260801bd59a790c0c5 (diff)
downloadcpython-ba8b3a2ca7a43684cf67b174a4b245b8ba596a5c.zip
cpython-ba8b3a2ca7a43684cf67b174a4b245b8ba596a5c.tar.gz
cpython-ba8b3a2ca7a43684cf67b174a4b245b8ba596a5c.tar.bz2
Close #12501: Adjust callable() warning: callable() is only not supported in
Python 3.1. callable() is again supported in Python 3.2.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 764ae87..c746e41 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -224,7 +224,7 @@ 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.x; "
+ 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));