summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/classobject.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index c4b1d8e..4bad2fd 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -193,13 +193,6 @@ class_getattr(register PyClassObject *op, PyObject *name)
PyString_AS_STRING(op->cl_name), sname);
return NULL;
}
- Py_INCREF(v);
- if (PyFunction_Check(v)) {
- PyObject *w = PyMethod_New(v, (PyObject *)NULL,
- (PyObject *)class);
- Py_DECREF(v);
- v = w;
- }
f = v->ob_type->tp_descr_get;
if (f == NULL)
Py_INCREF(v);