Skip to content

Commit

Permalink
python: fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 13, 2023
1 parent 8050c7d commit 082aa28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/python/parsers/urdf/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ namespace pinocchio
template <class ArgumentPackage>
static PyObject* postcall(ArgumentPackage const& args_, PyObject* result)
{
// If owner_arg exist, we run bp::return_internal_reference postcall
// result lifetime will be tied to owner_arg lifetime
// If owner_arg exists, we run bp::return_internal_reference postcall
// result lifetime will be tied to the owner_arg lifetime
PyObject* patient = bp::detail::get_prev<owner_arg>::execute(args_, result);
if (patient != Py_None)
return bp::return_internal_reference<owner_arg>::postcall(args_, result);
Expand All @@ -151,7 +151,7 @@ namespace pinocchio
return bp::to_python_indirect<GeometryModel, bp::detail::make_owning_holder>()(geom_model_extract());
}
// If returned value is not a GeometryModel*, then raise an error
PyErr_SetString(PyExc_RuntimeError, "pinocchio::python::return_value_policy only work on GeometryModel* data type");
PyErr_SetString(PyExc_RuntimeError, "pinocchio::python::return_value_policy only works on GeometryModel* data type");
return 0;
}
};
Expand Down

0 comments on commit 082aa28

Please sign in to comment.