From 5500668bd9b0d29700a64b72e184f72804c385b4 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 4 Jan 2023 16:08:23 +0100 Subject: [PATCH] Superfluous py::call_guard. --- src/bindings/python/simgrid_python.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 62157e429e..82b035ca33 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -188,7 +188,7 @@ PYBIND11_MODULE(simgrid, m) "get_all_hosts() is deprecated and will be dropped after v3.33, use all_hosts instead.", 1); return self.attr("all_hosts"); }) - .def("host_by_name", &Engine::host_by_name_or_null, py::call_guard(), + .def("host_by_name", &Engine::host_by_name_or_null, "Retrieve a host by its name, or None if it does not exist in the platform.") .def_property_readonly("all_hosts", &Engine::get_all_hosts, "Returns the list of all hosts found in the platform") .def("get_all_links", @@ -400,8 +400,7 @@ PYBIND11_MODULE(simgrid, m) "get_pstate_speed() is deprecated and will be dropped after v3.33, use pstate_speed instead.", 1); return self.attr("pstate_speed")(state); }) - .def("pstate_speed", &Host::get_pstate_speed, py::call_guard(), - "Retrieve the maximal speed at the given pstate") + .def("pstate_speed", &Host::get_pstate_speed, "Retrieve the maximal speed at the given pstate") .def("get_netpoint", [](py::object self) // XBT_ATTRIB_DEPRECATED_v334 { @@ -629,7 +628,7 @@ PYBIND11_MODULE(simgrid, m) .def_static("by_name", &Mailbox::by_name, py::call_guard(), py::arg("name"), "Retrieve a Mailbox from its name") .def_property_readonly("name", &Mailbox::get_name, "The name of that mailbox (read-only property).") - .def_property_readonly("ready", &Mailbox::ready, py::call_guard(), + .def_property_readonly("ready", &Mailbox::ready, "Check if there is a communication ready to be consumed from a mailbox.") .def( "put", -- 2.20.1