diff options
Diffstat (limited to 'tools/sample.py')
-rw-r--r-- | tools/sample.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/sample.py b/tools/sample.py index e32ebbcd..2d226b12 100644 --- a/tools/sample.py +++ b/tools/sample.py @@ -1,7 +1,5 @@ import ledger -def myvalue(incoming): - x = ledger.Amount("$123.12") - print x - print x * 1 - return x * 1 +def get_amount(item): + print "I found an amount:", item.amount() + return 123 |