mercurial/parsers.c
branchstable
changeset 16604 48e42f984074
parent 16597 b767382a8675
child 16621 8c3c9031f5aa
child 16641 e6dfbc5df76f
--- a/mercurial/parsers.c	Mon May 07 21:49:45 2012 +0200
+++ b/mercurial/parsers.c	Tue May 08 11:20:07 2012 +0200
@@ -1092,7 +1092,6 @@
 	0,                         /* tp_dictoffset */
 	(initproc)index_init,      /* tp_init */
 	0,                         /* tp_alloc */
-	PyType_GenericNew,         /* tp_new */
 };
 
 /*
@@ -1150,6 +1149,7 @@
 
 static void module_init(PyObject *mod)
 {
+	indexType.tp_new = PyType_GenericNew;
 	if (PyType_Ready(&indexType) < 0)
 		return;
 	Py_INCREF(&indexType);