summaryrefslogtreecommitdiff
path: root/src/py_xact.cc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-12 20:33:40 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2023-04-12 21:53:11 +0200
commit9244a27f9548a1d39fb01348fde66ff81f5150a4 (patch)
tree0f9d06a762a9a9939e1f37be60cf2b5e47da7983 /src/py_xact.cc
parent5f78556078d2e61d5c0ef44e36d58f3864cd84d1 (diff)
downloadfork-ledger-9244a27f9548a1d39fb01348fde66ff81f5150a4.tar.gz
fork-ledger-9244a27f9548a1d39fb01348fde66ff81f5150a4.tar.bz2
fork-ledger-9244a27f9548a1d39fb01348fde66ff81f5150a4.zip
Refactor python related types into ledger::python namespace
Diffstat (limited to 'src/py_xact.cc')
-rw-r--r--src/py_xact.cc5
1 files changed, 3 insertions, 2 deletions
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<return_internal_reference<> >
+ .def("__iter__", boost::python::range<return_internal_reference<> >
(&xact_t::posts_begin, &xact_t::posts_end))
- .def("posts", python::range<return_internal_reference<> >
+ .def("posts", boost::python::range<return_internal_reference<> >
(&xact_t::posts_begin, &xact_t::posts_end))
.def("valid", &xact_base_t::valid)