summaryrefslogtreecommitdiffstats
path: root/Objects/typeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 2a9ef71..6200a83 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -926,7 +926,7 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds)
mp->name = "__weakref__";
mp->type = T_OBJECT;
mp->offset = slotoffset;
- mp->readonly = 1;
+ mp->flags = READONLY;
mp++;
slotoffset += sizeof(PyObject *);
}