Diff and Hunk should not inherit from _libgit2.Object
This commit is contained in:
11
src/pygit2.c
11
src/pygit2.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user