diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-13 00:57:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 00:57:10 +0200 |
commit | d8fefe9e82f99d4dab477a66c83cad64a8159c33 (patch) | |
tree | 27d1a5e41abca837b72cfcc81b0b5c365f7debe7 /src/py_session.cc | |
parent | 0c57796f86aeec45e106189aacfd50e1791d5605 (diff) | |
parent | 9244a27f9548a1d39fb01348fde66ff81f5150a4 (diff) | |
download | fork-ledger-d8fefe9e82f99d4dab477a66c83cad64a8159c33.tar.gz fork-ledger-d8fefe9e82f99d4dab477a66c83cad64a8159c33.tar.bz2 fork-ledger-d8fefe9e82f99d4dab477a66c83cad64a8159c33.zip |
Merge pull request #2233 from afh/clean-up-class-list
Clean up class list
Diffstat (limited to 'src/py_session.cc')
-rw-r--r-- | src/py_session.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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<session_t *>(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<>()); } |