File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 1515verbose = True
1616# /--
1717
18+ # --- project specific configuration
19+ ALIASES = {
20+ 'Richard Jones <richard@mechanicalcat.net>' :
21+ ['richard' ,
22+ 'Richard Jones <richard@users.sourceforge.net>' ],
23+ 'Bernhard Reiter <bernhard@intevation.de>' :
24+ ['Bernhard Reiter <ber@users.sourceforge.net>' ,
25+ 'Bernhard Reiter <Bernhard.Reiter@intevation.de>' ],
26+ 'Ralf Schlatterbeck <rsc@runtux.com>' :
27+ ['Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>' ],
28+ 'Stefan Seefeld <stefan@seefeld.name>' :
29+ ['Stefan Seefeld <stefan@users.sourceforge.net>' ],
30+ 'John P. Rouillard <rouilj@cs.umb.edu>' :
31+ ['rouilj' ],
32+ }
33+ # /--
1834
1935
2036def compress (years ):
@@ -76,7 +92,12 @@ def compress(years):
7692 print ("Sorting..." )
7793 years = {} # year -> set(author1, author2, ...)
7894 names = {} # author -> set(years)
79- for year ,author in authorship :
95+ for year , author in authorship :
96+ # process aliases
97+ for name , aliases in ALIASES .items ():
98+ if author in aliases :
99+ author = name
100+ break
80101 # years
81102 if not year in years :
82103 years [year ] = set ()
You can’t perform that action at this time.
0 commit comments