Diff and Hunk should not inherit from _libgit2.Object

This commit is contained in:
Nico von Geyso
2012-05-30 07:28:35 +02:00
parent 480a56adcf
commit d14393c1df

View File

@@ -131,12 +131,6 @@ moduleinit(PyObject* m)
CommitType.tp_base = &ObjectType;
if (PyType_Ready(&CommitType) < 0)
return NULL;
DiffType.tp_base = &ObjectType;
if (PyType_Ready(&DiffType) < 0)
return NULL;
HunkType.tp_base = &ObjectType;
if (PyType_Ready(&HunkType) < 0)
return NULL;
TreeType.tp_base = &ObjectType;
if (PyType_Ready(&TreeType) < 0)
return NULL;
@@ -147,6 +141,11 @@ moduleinit(PyObject* m)
if (PyType_Ready(&TagType) < 0)
return NULL;
if (PyType_Ready(&DiffType) < 0)
return NULL;
if (PyType_Ready(&HunkType) < 0)
return NULL;
TreeEntryType.tp_new = PyType_GenericNew;
if (PyType_Ready(&TreeEntryType) < 0)
return NULL;