From 9244a27f9548a1d39fb01348fde66ff81f5150a4 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Wed, 12 Apr 2023 20:33:40 +0200 Subject: Refactor python related types into ledger::python namespace --- src/py_xact.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/py_xact.cc') diff --git a/src/py_xact.cc b/src/py_xact.cc index a0aa24d6..9a1017ba 100644 --- a/src/py_xact.cc +++ b/src/py_xact.cc @@ -38,6 +38,7 @@ namespace ledger { +using namespace python; using namespace boost::python; namespace { @@ -104,9 +105,9 @@ void export_xact() .def("finalize", &xact_base_t::finalize) - .def("__iter__", python::range > + .def("__iter__", boost::python::range > (&xact_t::posts_begin, &xact_t::posts_end)) - .def("posts", python::range > + .def("posts", boost::python::range > (&xact_t::posts_begin, &xact_t::posts_end)) .def("valid", &xact_base_t::valid) -- cgit v1.2.3