blob: a49c498c766f82c18735d2f1ccc706b18a65af54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
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)
|