summaryrefslogtreecommitdiff
path: root/test/regress/9188F587.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/9188F587.py')
-rw-r--r--test/regress/9188F587.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/regress/9188F587.py b/test/regress/9188F587.py
index 50195252..9095d58c 100644
--- a/test/regress/9188F587.py
+++ b/test/regress/9188F587.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import ledger
eur = ledger.commodities.find_or_create('EUR')
@@ -7,8 +9,8 @@ total_gbp = ledger.Amount("0.00 GBP")
total = ledger.Amount("0.00 EUR")
for post in ledger.read_journal("test/regress/78AB4B87.dat").query("^income:"):
- print post.amount
- print post.amount.commodity
+ print(post.amount)
+ print(post.amount.commodity)
if post.amount.commodity == "EUR":
total_eur += post.amount
elif post.amount.commodity == "GBP":
@@ -16,12 +18,12 @@ for post in ledger.read_journal("test/regress/78AB4B87.dat").query("^income:"):
a = post.amount.value(eur, post.date)
if a:
- print "Total is presently: (%s)" % total
- print "Converted to EUR: (%s)" % a
+ print("Total is presently: (%s)" % total)
+ print("Converted to EUR: (%s)" % a)
total += a
- print "Total is now: (%s)" % total
+ print("Total is now: (%s)" % total)
else:
- print "Cannot convert '%s'" % post.amount
- print
+ print("Cannot convert '%s'" % post.amount)
+ print()
-print total
+print(total)