summaryrefslogtreecommitdiff
path: root/src/py_amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:24:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:38 -0400
commit06e7c2820242ea5130a63305836f822ccb409a92 (patch)
treed59d4ad1e85c0319cebe203858bf1924ffa1d205 /src/py_amount.cc
parent7868a53b70bd08b79007386dbb5b1590bfb2e457 (diff)
downloadfork-ledger-06e7c2820242ea5130a63305836f822ccb409a92.tar.gz
fork-ledger-06e7c2820242ea5130a63305836f822ccb409a92.tar.bz2
fork-ledger-06e7c2820242ea5130a63305836f822ccb409a92.zip
Rearranged many method names.
Diffstat (limited to 'src/py_amount.cc')
-rw-r--r--src/py_amount.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc
index c4f476c3..2d93067d 100644
--- a/src/py_amount.cc
+++ b/src/py_amount.cc
@@ -175,10 +175,10 @@ void export_amount()
.def("value", py_value_2)
.def("sign", &amount_t::sign)
- .def("__nonzero__", &amount_t::nonzero)
- .def("nonzero", &amount_t::nonzero)
- .def("zero", &amount_t::zero)
- .def("realzero", &amount_t::realzero)
+ .def("__nonzero__", &amount_t::is_nonzero)
+ .def("nonzero", &amount_t::is_nonzero)
+ .def("zero", &amount_t::is_zero)
+ .def("realzero", &amount_t::is_realzero)
.def("is_null", &amount_t::is_null)
.def("to_double", &amount_t::to_double)