Skip to content

Commit

Permalink
Merge pull request #32 from lsst/tickets/DM-14828
Browse files Browse the repository at this point in the history
DM-14828: Update pybind11 wrappers for 2.2
  • Loading branch information
r-owen committed Jul 21, 2018
2 parents df18595 + d68d020 commit ce273f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/lsst/log/log/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ class callable_wrapper {
PyObject* _callable;
};

PYBIND11_PLUGIN(log) {
py::module mod("log");

PYBIND11_MODULE(log, mod) {
py::class_<Log> cls(mod, "Log");

/* Constructors */
Expand Down Expand Up @@ -98,8 +96,6 @@ PYBIND11_PLUGIN(log) {
auto handle = func.release(); // will leak as described in callable_wrapper
Log::MDCRegisterInit(std::function<void()>(callable_wrapper(handle.ptr())));
});

return mod.ptr();
}

} // log
Expand Down

0 comments on commit ce273f5

Please sign in to comment.