Merge pull request #290 from tubaman/fix_python_example
Fix python example so it runs
This commit is contained in:
commit
353531d5d2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue