summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-30 01:16:37 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-30 01:16:37 (GMT)
commit2652d2570ea2d34fc790ef99ebd0c3c321fb86cb (patch)
tree269536e46b96c5b2ce358d366487940ddc069db4 /Objects
parente28108cbd71d75e545c7364b16ed47c1271eb36a (diff)
downloadcpython-2652d2570ea2d34fc790ef99ebd0c3c321fb86cb.zip
cpython-2652d2570ea2d34fc790ef99ebd0c3c321fb86cb.tar.gz
cpython-2652d2570ea2d34fc790ef99ebd0c3c321fb86cb.tar.bz2
ready types returned from PyType_FromSpec
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index e2316bd..c3822ab 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2386,6 +2386,9 @@ PyType_FromSpec(PyType_Spec *spec)
}
}
+ if (PyType_Ready(&res->ht_type) < 0)
+ goto fail;
+
return (PyObject*)res;
fail: