summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRyan Nowakowski <tubaman@fattuba.com>2014-05-15 21:29:54 -0500
committerRyan Nowakowski <tubaman@fattuba.com>2014-05-15 21:29:54 -0500
commited9cc46b49e0b194a047b8b6a4fd4a76a05d8194 (patch)
tree63951a3d163fb87f85d97dbb9c96afe56e079348 /doc
parentab921cca0c7953dbacd1bcd17058bdab4f514dda (diff)
downloadfork-ledger-ed9cc46b49e0b194a047b8b6a4fd4a76a05d8194.tar.gz
fork-ledger-ed9cc46b49e0b194a047b8b6a4fd4a76a05d8194.tar.bz2
fork-ledger-ed9cc46b49e0b194a047b8b6a4fd4a76a05d8194.zip
Fix python example so it runs
Diffstat (limited to 'doc')
-rw-r--r--doc/ledger3.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi
index 68f47d99..d3efc06f 100644
--- a/doc/ledger3.texi
+++ b/doc/ledger3.texi
@@ -8496,8 +8496,8 @@ Here is how you would traverse all the postings in your data file:
@smallexample
import ledger
-for xact in ledger.read_journal("sample.dat").xacts:
- for post in xact.posts:
+for xact in ledger.read_journal("sample.dat").xacts():
+ for post in xact.posts():
print "Transferring %s to/from %s" % (post.amount, post.account)
@end smallexample