Avoid including the same person more than once in case (s)he has several svn usernames.
svn: r10688
This commit is contained in:
parent
88af8f6f9f
commit
b4db8305ce
@ -144,12 +144,13 @@ class AuthorParser(handler.ContentHandler):
|
||||
def endElement(self, tag):
|
||||
"""Handle the end of an element."""
|
||||
if tag == "author":
|
||||
developer = self.text.strip()
|
||||
if (self.title == 'author' and
|
||||
self.text not in self.author_list):
|
||||
self.author_list.append(self.text.strip())
|
||||
developer not in self.author_list):
|
||||
self.author_list.append(developer)
|
||||
elif (self.title == 'contributor' and
|
||||
self.text not in self.contributor_list):
|
||||
self.contributor_list.append(self.text.strip())
|
||||
developer not in self.contributor_list):
|
||||
self.contributor_list.append(developer)
|
||||
|
||||
def characters(self, chunk):
|
||||
"""Receive notification of character data."""
|
||||
|
Loading…
Reference in New Issue
Block a user