Skip to content

Commit f27d316

Browse files
committed
pybind: fix deprecated pybind11 calls
1 parent 9fcd954 commit f27d316

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/pyMOOS.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,8 @@ class AsyncCommsWrapper : public MOOS::MOOSAsyncCommClient {
216216
;//namesapce
217217

218218

219-
PYBIND11_PLUGIN(pymoos)
220-
{
221-
py::module m("pymoos", "python wrapping for MOOS.");
219+
PYBIND11_MODULE(pymoos, m) {
220+
m.doc() = "python wrapper for MOOS";
222221

223222
PyEval_InitThreads();
224223

@@ -540,7 +539,4 @@ PYBIND11_PLUGIN(pymoos)
540539
PyErr_SetString(PyExc_RuntimeError, e.what());
541540
}
542541
});
543-
544-
545-
return m.ptr();
546542
}

0 commit comments

Comments
 (0)