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_session.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/py_session.cc') diff --git a/src/py_session.cc b/src/py_session.cc index 02529334..3606adc6 100644 --- a/src/py_session.cc +++ b/src/py_session.cc @@ -38,6 +38,7 @@ namespace ledger { +using namespace python; using namespace boost::python; namespace { @@ -78,12 +79,12 @@ void export_session() scope().attr("session") = object(ptr(static_cast(python_session.get()))); scope().attr("close_journal_files") = - python::make_function(&py_close_journal_files); + boost::python::make_function(&py_close_journal_files); scope().attr("read_journal") = - python::make_function(&py_read_journal, + boost::python::make_function(&py_read_journal, return_internal_reference<>()); scope().attr("read_journal_from_string") = - python::make_function(&py_read_journal_from_string, + boost::python::make_function(&py_read_journal_from_string, return_internal_reference<>()); } -- cgit v1.2.3