From 0bd19fd026b2505c420930da6e691ef8b42e2b55 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 7 Sep 2022 09:49:26 +0200 Subject: [PATCH] tools/litex_contributors: Rename authors to contributors. --- litex/tools/litex_contributors.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litex/tools/litex_contributors.py b/litex/tools/litex_contributors.py index 5fab378c6..ec2dce5d8 100755 --- a/litex/tools/litex_contributors.py +++ b/litex/tools/litex_contributors.py @@ -43,7 +43,7 @@ def list_contributors(path): os.system(f"git log --follow --pretty=format:\"%an,%ae,%aI\" {path} | sort | uniq > contribs.csv") # Read .csv and process it. - authors = {} + contributors = {} with open("contribs.csv", newline='') as csvfile: reader = csv.reader(csvfile, delimiter=",") for line in reader: @@ -55,13 +55,13 @@ def list_contributors(path): if companies_email.lower() in email: name = companies_name email = companies_email - if name in authors.keys(): - authors[name].add_year(int(year)) + if name in contributors.keys(): + contributors[name].add_year(int(year)) else: - authors[name] = Author(email, int(year)) + contributors[name] = Author(email, int(year)) # Export Contributors. - for name, info in authors.items(): + for name, info in contributors.items(): r = "Copyright (c) " if len(info.years) > 1: years = f"{info.years[0]}-{info.years[-1]}"