diff Python/bltinmodule.c @ 71248:1f814faaf54d 2.7

Close #12501: Adjust callable() warning: callable() is only not supported in Python 3.1. callable() is again supported in Python 3.2.
author Victor Stinner <victor.stinner@haypocalc.com>
date Fri, 08 Jul 2011 02:07:45 +0200
parents b36cb4602e21
children b57ace63286b
line wrap: on
line diff
--- a/Python/bltinmodule.c	Tue Jul 05 19:08:38 2011 -0700
+++ b/Python/bltinmodule.c	Fri Jul 08 02:07:45 2011 +0200
@@ -224,7 +224,7 @@
 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));