From ed9cc46b49e0b194a047b8b6a4fd4a76a05d8194 Mon Sep 17 00:00:00 2001 From: Ryan Nowakowski Date: Thu, 15 May 2014 21:29:54 -0500 Subject: Fix python example so it runs --- doc/ledger3.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') 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 -- cgit v1.2.3