diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/classobject.c | 4 | ||||
-rw-r--r-- | Objects/funcobject.c | 6 |
2 files changed, 0 insertions, 10 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index d10ab298be..cb78d159e6 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -43,10 +43,6 @@ PyObject * PyMethod_New(PyObject *func, PyObject *self) { register PyMethodObject *im; - if (!PyCallable_Check(func)) { - PyErr_BadInternalCall(); - return NULL; - } if (self == NULL) { PyErr_BadInternalCall(); return NULL; diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 1456810057..16851a942d 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; |