Skip to content

Commit

Permalink
Refs #8254 - Make doubly sure that we remove blacklisted names...
Browse files Browse the repository at this point in the history
... since a blacklisted name could be referring to a name entered into
Git, or a translated name.
  • Loading branch information
PeterParker committed Oct 30, 2013
1 parent 3cf5782 commit d47dc83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Tools/DOI/authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ def _clean_up_author_list(author_list):
# Translate all remaining names.
result = [_translations[a] for a in result]

# Another check for any blacklisted names, in case we want to remove the
# translated name.
result = set(ifilterfalse(_blacklist.__contains__, result))

# Return the unique list of translated names.
return sorted(set(result))

Expand Down

0 comments on commit d47dc83

Please sign in to comment.