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_times.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/py_times.cc') diff --git a/src/py_times.cc b/src/py_times.cc index 79bacad7..d2afb5c8 100644 --- a/src/py_times.cc +++ b/src/py_times.cc @@ -40,6 +40,7 @@ namespace ledger { +using namespace python; using namespace boost::python; struct date_to_python @@ -81,7 +82,6 @@ struct date_from_python typedef register_python_conversion date_python_conversion; - struct datetime_to_python { static PyObject* convert(const datetime_t& moment) @@ -145,7 +145,6 @@ typedef register_python_conversion datetime_python_conversion; - /* Convert time_duration to/from python */ struct duration_to_python { @@ -185,7 +184,7 @@ struct duration_from_python } static void construct(PyObject* obj_ptr, - python::converter::rvalue_from_python_stage1_data * data) + converter::rvalue_from_python_stage1_data * data) { PyDateTime_Delta const* pydelta = reinterpret_cast(obj_ptr); @@ -217,7 +216,6 @@ typedef register_python_conversion duration_python_conversion; - datetime_t py_parse_datetime(const string& str) { return parse_datetime(str); } -- cgit v1.2.3