mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-21 12:50:27 +08:00
contribs.py: fixed the case of empty string
This commit is contained in:
@@ -42,7 +42,8 @@ authors = [a.strip() for a in authors if a.strip()]
|
||||
|
||||
def key(author):
|
||||
author = [v for v in author.split() if v[0] in string.ascii_letters]
|
||||
return author[-1]
|
||||
if len(author) > 0:
|
||||
return author[-1]
|
||||
|
||||
authors = sorted(set(authors), key=key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user