summaryrefslogtreecommitdiff
path: root/test/regress/B21BF389.py
blob: e130b7b362a1b02a681cfe6c376ebd30ca15e701 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python3

import sys
import ledger

for post in ledger.read_journal(__file__.replace(".py", "_py.test")).query("income"):
  reference = post.tag("Reference")
  if sys.version_info.major == 2:
      reference = unicode(reference)
  print(reference)