mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
cext: move back finalization of dirstateTupleType where it should be
This commit is contained in:
parent
d0f5db29a6
commit
0174b4e600
@ -944,6 +944,8 @@ static void module_init(PyObject *mod)
|
||||
manifest_module_init(mod);
|
||||
revlog_module_init(mod);
|
||||
|
||||
if (PyType_Ready(&dirstateTupleType) < 0)
|
||||
return;
|
||||
Py_INCREF(&dirstateTupleType);
|
||||
PyModule_AddObject(mod, "dirstatetuple",
|
||||
(PyObject *)&dirstateTupleType);
|
||||
|
@ -1930,8 +1930,7 @@ bail:
|
||||
void revlog_module_init(PyObject *mod)
|
||||
{
|
||||
indexType.tp_new = PyType_GenericNew;
|
||||
if (PyType_Ready(&indexType) < 0 ||
|
||||
PyType_Ready(&dirstateTupleType) < 0)
|
||||
if (PyType_Ready(&indexType) < 0)
|
||||
return;
|
||||
Py_INCREF(&indexType);
|
||||
PyModule_AddObject(mod, "index", (PyObject *)&indexType);
|
||||
|
Loading…
Reference in New Issue
Block a user