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_journal.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/py_journal.cc') diff --git a/src/py_journal.cc b/src/py_journal.cc index 08a4ebf1..d96618e7 100644 --- a/src/py_journal.cc +++ b/src/py_journal.cc @@ -241,7 +241,7 @@ void export_journal() boost::noncopyable >("PostCollectorWrapper", no_init) .def("__len__", &collector_wrapper::length) .def("__getitem__", posts_getitem, return_internal_reference<>()) - .def("__iter__", python::range > + .def("__iter__", boost::python::range > (&collector_wrapper::begin, &collector_wrapper::end)) ; @@ -306,15 +306,15 @@ void export_journal() with_custodian_and_ward_postcall<1, 0> >()) #endif - .def("__iter__", python::range > + .def("__iter__", boost::python::range > (&journal_t::xacts_begin, &journal_t::xacts_end)) - .def("xacts", python::range > + .def("xacts", boost::python::range > (&journal_t::xacts_begin, &journal_t::xacts_end)) - .def("auto_xacts", python::range > + .def("auto_xacts", boost::python::range > (&journal_t::auto_xacts_begin, &journal_t::auto_xacts_end)) - .def("period_xacts", python::range > + .def("period_xacts", boost::python::range > (&journal_t::period_xacts_begin, &journal_t::period_xacts_end)) - .def("sources", python::range > + .def("sources", boost::python::range > (&journal_t::sources_begin, &journal_t::sources_end)) #if 0 .def("read", py_read) -- cgit v1.2.3