summaryrefslogtreecommitdiffstats
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 1456810..16851a9 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -765,12 +765,6 @@ cm_init(PyObject *self, PyObject *args, PyObject *kwds)
return -1;
if (!_PyArg_NoKeywords("classmethod", kwds))
return -1;
- if (!PyCallable_Check(callable)) {
- PyErr_Format(PyExc_TypeError, "'%s' object is not callable",
- callable->ob_type->tp_name);
- return -1;
- }
-
Py_INCREF(callable);
cm->cm_callable = callable;
return 0;