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
7dcd78f3ff
commit
f8a8cdf24b
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]
|
# 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}
|
tag_counts = {(tags.count(tag), tag) for tag in tags}
|
||||||
for n, tag in sorted(tag_counts, reverse=True):
|
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
|
elif args.json: # export to json
|
||||||
print(journal.to_json())
|
print(journal.to_json())
|
||||||
|
|
Loading…
Add table
Reference in a new issue