Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk committed Jul 10, 2023
1 parent 15ccc58 commit 2e7afa3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/F3DPythonBindings.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,13 @@ PYBIND11_MODULE(f3d, module)
image.def("setData",
[=](f3d::image& img, const py::bytes& data)
{
PyErr_WarnEx(PyExc_DeprecationWarning,
"setData is deprecated, use setContent instead.", 1);
PyErr_WarnEx(PyExc_DeprecationWarning, "setData is deprecated, use setContent instead.", 1);
setImageBytes(img, data);
});
image.def("getData",
[=](const f3d::image& img)
{
PyErr_WarnEx(PyExc_DeprecationWarning,
"getData is deprecated, use getContent instead.", 1);
PyErr_WarnEx(PyExc_DeprecationWarning, "getData is deprecated, use getContent instead.", 1);
getImageBytes(img);
});
#endif
Expand Down

0 comments on commit 2e7afa3

Please sign in to comment.