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]}"