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
This commit is contained in:
parent
1e11085d5f
commit
db9822788e
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ SwigPyBuiltin_FunpackSetterClosure (PyObject *obj, PyObject *val, void *closure)
|
||||||
|
|
||||||
SWIGINTERN void
|
SWIGINTERN void
|
||||||
SwigPyStaticVar_dealloc(PyDescrObject *descr) {
|
SwigPyStaticVar_dealloc(PyDescrObject *descr) {
|
||||||
_PyObject_GC_UNTRACK(descr);
|
PyObject_GC_UnTrack(descr);
|
||||||
Py_XDECREF(PyDescr_TYPE(descr));
|
Py_XDECREF(PyDescr_TYPE(descr));
|
||||||
Py_XDECREF(PyDescr_NAME(descr));
|
Py_XDECREF(PyDescr_NAME(descr));
|
||||||
PyObject_GC_Del(descr);
|
PyObject_GC_Del(descr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue