diff options
| author | Benjamin Peterson <benjamin@python.org> | 2009-09-01 22:27:57 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2009-09-01 22:27:57 (GMT) |
| commit | 6fcf9b50bc13d757096822ba996fa3c122b70c6b (patch) | |
| tree | 473ddc3cce22f1c84d6ca1d739291a46f3a6544a /Objects/funcobject.c | |
| parent | 8514b85edc420aa1f91c443e7e11629855a170d3 (diff) | |
| download | cpython-6fcf9b50bc13d757096822ba996fa3c122b70c6b.zip cpython-6fcf9b50bc13d757096822ba996fa3c122b70c6b.tar.gz cpython-6fcf9b50bc13d757096822ba996fa3c122b70c6b.tar.bz2 | |
remove the check that classmethod's argument is a callable
Diffstat (limited to 'Objects/funcobject.c')
| -rw-r--r-- | Objects/funcobject.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 7774e6d..075f820 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -659,12 +659,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; |
