mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Print-statement Python 3-compatible
This commit is contained in:
parent
e1e652b2d4
commit
ed0be6772c
1 changed files with 1 additions and 1 deletions
2
jrnl.py
2
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())
|
||||
|
|
Loading…
Add table
Reference in a new issue