From db9822788e183b79457d6bedab8b9a5cabb4cd5e Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 12 Jul 2019 18:33:29 +0200 Subject: [PATCH] Use PyObject_GC_UnTrack in lieu of the old variant The _PyObject_GC_UNTRACK[1] macro got deprecated in 3.6 and finally removed in 3.8. Therefore use PyObject_GC_UnTrack instead. [1] https://docs.python.org/3/c-api/gcsupport.html#c._PyObject_GC_UNTRACK --- Lib/python/builtin.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/python/builtin.swg b/Lib/python/builtin.swg index 5062a8b42..28051e67b 100644 --- a/Lib/python/builtin.swg +++ b/Lib/python/builtin.swg @@ -117,7 +117,7 @@ SwigPyBuiltin_FunpackSetterClosure (PyObject *obj, PyObject *val, void *closure) SWIGINTERN void SwigPyStaticVar_dealloc(PyDescrObject *descr) { - _PyObject_GC_UNTRACK(descr); + PyObject_GC_UnTrack(descr); Py_XDECREF(PyDescr_TYPE(descr)); Py_XDECREF(PyDescr_NAME(descr)); PyObject_GC_Del(descr);