interrogate: Fix compilation error of bindings with Python 3.9+

This commit is contained in:
rdb 2020-09-12 22:50:03 +02:00
parent 54ffc534fb
commit dabab90415
1 changed files with 2 additions and 0 deletions

View File

@ -6545,7 +6545,9 @@ write_make_seq(ostream &out, Object *obj, const std::string &ClassName,
"\n";
if ((elem_getter->_args_type & AT_varargs) == AT_varargs) {
out << "#if defined(Py_TRACE_REFS) || PY_VERSION_HEX < 0x03090000\n";
out << " _Py_ForgetReference((PyObject *)&args);\n";
out << "#endif\n";
}
out <<