summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-09-01 20:32:31 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-09-01 20:32:31 (GMT)
commiteff61f6927c94c82b5fc8f0a266340f1e91a363c (patch)
treeced3487c4462481dc588ee9aac7592e04b6171ae /Objects/object.c
parenta762285831d1591d5c621394f8f6be45688ba33d (diff)
downloadcpython-eff61f6927c94c82b5fc8f0a266340f1e91a363c.zip
cpython-eff61f6927c94c82b5fc8f0a266340f1e91a363c.tar.gz
cpython-eff61f6927c94c82b5fc8f0a266340f1e91a363c.tar.bz2
make sure to initialize the method wrapper type
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 3240bc3..694e7e7 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1625,6 +1625,9 @@ _Py_ReadyTypes(void)
if (PyType_Ready(&PyWrapperDescr_Type) < 0)
Py_FatalError("Can't initialize wrapper type");
+ if (PyType_Ready(&_PyMethodWrapper_Type) < 0)
+ Py_FatalError("Can't initialize method wrapper type");
+
if (PyType_Ready(&PyEllipsis_Type) < 0)
Py_FatalError("Can't initialize ellipsis type");