Merge pull request #290 from tubaman/fix_python_example

Fix python example so it runs
This commit is contained in:
Martin Michlmayr 2014-05-16 11:02:15 -04:00
commit 353531d5d2

View file

@ -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