diff --git a/utils/credits_git_gen.py b/utils/credits_git_gen.py
index e8a2696..0b98863 100755
--- a/utils/credits_git_gen.py
+++ b/utils/credits_git_gen.py
@@ -150,14 +150,14 @@ class Credits:
with open(filepath, 'w', encoding="ascii", errors='xmlcharrefreplace') as file:
file.write("
Individual Contributors
\n\n")
for author, cu in sorted_authors.items():
- file.write("%s, %d %s %s
\n" %
- (author,
- cu.commit_total,
- commit_word[cu.commit_total > 1],
- ("" if not is_main_credits else (
- ("- %d" % cu.year_min) if cu.year_min == cu.year_max else
- ("(%d - %d)" % (cu.year_min, cu.year_max))))))
- file.write("\n\n")
+ file.write("{:s}, {:,d} {:s} {:s}
\n".format(
+ author,
+ cu.commit_total,
+ commit_word[cu.commit_total > 1],
+ ("" if not is_main_credits else
+ ("- {:d}".format(cu.year_min) if cu.year_min == cu.year_max else
+ ("({:d} - {:d})".format(cu.year_min, cu.year_max))))))
+ file.write("\n\n")
# -------------------------------------------------------------------------
# Companies, hard coded
@@ -165,14 +165,16 @@ class Credits:
file.write("Contributions from Companies & Organizations
\n")
file.write("\n")
for line in contrib_companies:
- file.write("%s
\n" % line)
+ file.write("{:s}
\n".format(line))
file.write("
\n")
import datetime
now = datetime.datetime.now()
fn = __file__.split("\\")[-1].split("/")[-1]
- file.write("Generated by '%s' %d/%d/%d\n" %
- (fn, now.year, now.month, now.day))
+ file.write(
+ "Generated by '{:s}' {:d}/{:d}/{:d}\n".format(
+ fn, now.year, now.month, now.day
+ ))
def argparse_create():