From 5310945f4cc4a253cd9a137499095ccac1b02634 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 11 Feb 2019 23:36:30 +0100 Subject: [PATCH] py_panda: fix use of macro that was removed in Python 3.8 --- dtool/src/interrogatedb/py_wrappers.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dtool/src/interrogatedb/py_wrappers.cxx b/dtool/src/interrogatedb/py_wrappers.cxx index 0b8a751cad..e004246249 100644 --- a/dtool/src/interrogatedb/py_wrappers.cxx +++ b/dtool/src/interrogatedb/py_wrappers.cxx @@ -1091,7 +1091,11 @@ static PyObject *Dtool_GeneratorWrapper_iternext(PyObject *self) { */ static void Dtool_StaticProperty_dealloc(PyDescrObject *descr) { +#if PY_VERSION_HEX >= 0x03080000 + PyObject_GC_UnTrack(descr); +#else _PyObject_GC_UNTRACK(descr); +#endif Py_XDECREF(descr->d_type); Py_XDECREF(descr->d_name); //#if PY_MAJOR_VERSION >= 3