Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Sep 29, 2024
1 parent 3f63967 commit 6ea93af
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions native/python/pyjp_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,11 @@ static PyType_Spec comparableSpec = {

void PyJPObject_initType(PyObject* module)
{
JPPyObject bases = JPPyTuple_Pack(PyBaseObject_Type);
PyJPObject_Type = (PyTypeObject*) PyJPClass_FromSpecWithBases(&objectSpec, bases.get());
JP_PY_CHECK(); // GCOVR_EXCL_LINE
PyJPObject_Type = (PyTypeObject*) PyJPClass_FromSpecWithBases(&objectSpec, nullptr);
JP_PY_CHECK(); // GCOVR_EXCL_LINE
PyModule_AddObject(module, "_JObject", (PyObject*) PyJPObject_Type);
JP_PY_CHECK(); // GCOVR_EXCL_LINE
bases = JPPyTuple_Pack(PyExc_Exception, PyJPObject_Type);
JPPyObject bases = JPPyTuple_Pack(PyExc_Exception, PyJPObject_Type);
PyJPException_Type = (PyTypeObject*) PyJPClass_FromSpecWithBases(&excSpec, bases.get());
JP_PY_CHECK(); // GCOVR_EXCL_LINE
PyModule_AddObject(module, "_JException", (PyObject*) PyJPException_Type);
Expand Down

0 comments on commit 6ea93af

Please sign in to comment.