summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 137752d..0d9b3fe 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1160,7 +1160,7 @@ PyObject_GenericGetAttr(PyObject *obj, PyObject *name)
PyObject **dictptr;
if (tp->tp_dict == NULL) {
- if (PyType_InitDict(tp) < 0)
+ if (PyType_Ready(tp) < 0)
return NULL;
}
@@ -1207,7 +1207,7 @@ PyObject_GenericSetAttr(PyObject *obj, PyObject *name, PyObject *value)
PyObject **dictptr;
if (tp->tp_dict == NULL) {
- if (PyType_InitDict(tp) < 0)
+ if (PyType_Ready(tp) < 0)
return -1;
}