Skip to content

Commit f4ea234

Browse files
authored
Adapt to Python 3.9 (#362)
PyEval_CallObjectWithKeywords(), PyEval_CallObject(), PyEval_CallFunction and PyEval_CallMethod are deprecated in Python 3.9 based on https://github.com/python/cpython/blob/master/Include/ceval.h#L23.
1 parent 0304f48 commit f4ea234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2_py/src/tf2_py.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static PyObject * transform_converter(const geometry_msgs::msg::TransformStamped
9696
goto cleanup;
9797
}
9898

99-
pinst = PyEval_CallObject(pclass, pargs);
99+
pinst = PyObject_Call(pclass, pargs, NULL);
100100
if (!pinst) {
101101
goto cleanup;
102102
}

0 commit comments

Comments
 (0)