##// END OF EJS Templates
cext: move back finalization of dirstateTupleType where it should be
Yuya Nishihara -
r32383:2e5a476b default
parent child Browse files
Show More
@@ -944,6 +944,8 b' static void module_init(PyObject *mod)'
944 944 manifest_module_init(mod);
945 945 revlog_module_init(mod);
946 946
947 if (PyType_Ready(&dirstateTupleType) < 0)
948 return;
947 949 Py_INCREF(&dirstateTupleType);
948 950 PyModule_AddObject(mod, "dirstatetuple",
949 951 (PyObject *)&dirstateTupleType);
@@ -1930,8 +1930,7 b' bail:'
1930 1930 void revlog_module_init(PyObject *mod)
1931 1931 {
1932 1932 indexType.tp_new = PyType_GenericNew;
1933 if (PyType_Ready(&indexType) < 0 ||
1934 PyType_Ready(&dirstateTupleType) < 0)
1933 if (PyType_Ready(&indexType) < 0)
1935 1934 return;
1936 1935 Py_INCREF(&indexType);
1937 1936 PyModule_AddObject(mod, "index", (PyObject *)&indexType);
General Comments 0
You need to be logged in to leave comments. Login now