diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-05-16 11:02:15 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-05-16 11:02:15 -0400 |
commit | 353531d5d2b4a02ef845b5a9208ee87cbf251a43 (patch) | |
tree | 63951a3d163fb87f85d97dbb9c96afe56e079348 /doc | |
parent | ab921cca0c7953dbacd1bcd17058bdab4f514dda (diff) | |
parent | ed9cc46b49e0b194a047b8b6a4fd4a76a05d8194 (diff) | |
download | fork-ledger-353531d5d2b4a02ef845b5a9208ee87cbf251a43.tar.gz fork-ledger-353531d5d2b4a02ef845b5a9208ee87cbf251a43.tar.bz2 fork-ledger-353531d5d2b4a02ef845b5a9208ee87cbf251a43.zip |
Merge pull request #290 from tubaman/fix_python_example
Fix python example so it runs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ledger3.texi | 4 |
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 |