From ed0be6772c80cad5804e71f43074f8b33013389b Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Mon, 21 May 2012 11:42:52 +0200 Subject: [PATCH] Print-statement Python 3-compatible --- jrnl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl.py b/jrnl.py index 8aa4c005..af8b0616 100755 --- a/jrnl.py +++ b/jrnl.py @@ -467,7 +467,7 @@ if __name__ == "__main__": # To be read: [for entry in journal.entries: for tag in set(entry.tags): tag] tag_counts = {(tags.count(tag), tag) for tag in tags} for n, tag in sorted(tag_counts, reverse=True): - print "%-20s : %d" % (tag, n) + print("{:20} : {}".format(tag, n)) elif args.json: # export to json print(journal.to_json())