summaryrefslogtreecommitdiffstats
path: root/Tools/modulator/Templates/object_tail
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/modulator/Templates/object_tail')
-rw-r--r--Tools/modulator/Templates/object_tail5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/modulator/Templates/object_tail b/Tools/modulator/Templates/object_tail
index 9bc78ca..4803ea5 100644
--- a/Tools/modulator/Templates/object_tail
+++ b/Tools/modulator/Templates/object_tail
@@ -1,6 +1,6 @@
-static typeobject $Abbrev$type = {
- OB_HEAD_INIT(&Typetype)
+static PyTypeObject $Abbrev$type = {
+ PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
"$name$", /*tp_name*/
sizeof($abbrev$object), /*tp_basicsize*/
@@ -20,3 +20,4 @@ static typeobject $Abbrev$type = {
/* End of code for $name$ objects */
/* -------------------------------------------------------- */
+