File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,14 @@ def get_authors(revision_range):
68
68
pre .discard ('Homu' )
69
69
70
70
# Update doc/source/names_wordlist.txt with the names of every author
71
- names = []
72
- [names .extend (re .sub ('\W+' , ' ' , x ).split ()) for x in cur .union (pre )]
73
71
74
- path = os .path .sep . join (os .path .abspath (__file__ ). split ( os . path . sep )[: - 2 ] )
72
+ path = os .path .dirname (os .path .dirname (__file__ ))
75
73
wordlist_path = os .path .join (path , 'doc' , 'source' , 'names_wordlist.txt' )
76
74
77
75
with open (wordlist_path , 'w' , encoding = 'utf-8' ) as wordlist :
78
- for name in names :
79
- wordlist .write ('{}\n ' .format (name ))
76
+ for name in cur .union (pre ):
77
+ name = re .sub ('\W+' , ' ' , name ).split ()
78
+ wordlist .write ('{}\n ' .format ('\n ' .join (name )))
80
79
81
80
# Append '+' to new authors.
82
81
authors = [s + u' +' for s in cur - pre ] + [s for s in cur & pre ]
You can’t perform that action at this time.
0 commit comments