diff options
Diffstat (limited to 'python/py_value.cc')
-rw-r--r-- | python/py_value.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/py_value.cc b/python/py_value.cc index 80952d7d..59be1d33 100644 --- a/python/py_value.cc +++ b/python/py_value.cc @@ -54,15 +54,15 @@ boost::optional<value_t> py_value_2(const value_t& amount, return amount.value(moment, in_terms_of); } -string py_print(const value_t& value) { +string py_dump(const value_t& value) { std::ostringstream buf; - value.print(buf); + value.dump(buf); return buf.str(); } -string py_print_relaxed(const value_t& value) { +string py_dump_relaxed(const value_t& value) { std::ostringstream buf; - value.print(buf, true); + value.dump(buf, true); return buf.str(); } @@ -255,8 +255,8 @@ void export_value() .def("to_string", &value_t::to_string) .def("to_sequence", &value_t::to_sequence) - .def("__str__", py_print_relaxed) - .def("__repr__", py_print) + .def("__str__", py_dump_relaxed) + .def("__repr__", py_dump) .def("cast", &value_t::cast) .def("in_place_cast", &value_t::in_place_cast) |