diff options
author | Ondřej Kuzník <ondra@mistotebe.net> | 2014-12-22 00:52:20 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2019-12-05 15:06:44 +0100 |
commit | e264eb618b8eabf9670084f40687af916a63567e (patch) | |
tree | 8490b598e6d967f9a453ff7173f6468f8255234e /python/demo.py | |
parent | 85f94ee522d9df3d22fc39894dffa2203ea5918b (diff) | |
download | fork-ledger-e264eb618b8eabf9670084f40687af916a63567e.tar.gz fork-ledger-e264eb618b8eabf9670084f40687af916a63567e.tar.bz2 fork-ledger-e264eb618b8eabf9670084f40687af916a63567e.zip |
Use print function
[ci skip]
Diffstat (limited to 'python/demo.py')
-rwxr-xr-x | python/demo.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/demo.py b/python/demo.py index 88931b17..e57af05a 100755 --- a/python/demo.py +++ b/python/demo.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import print_function + import sys from datetime import datetime @@ -9,7 +11,7 @@ from datetime import datetime import ledger -print "Welcome to the Ledger.Python demo!" +print("Welcome to the Ledger.Python demo!") # Some quick helper functions to help us assert various types of truth # throughout the script. @@ -290,4 +292,4 @@ assertEqual('$', val.to_amount().commodity.symbol) #journal.collect('-M food') #journal.collect_accounts('^assets ^liab ^equity') -print 'Demo completed successfully.' +print('Demo completed successfully.') |