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):
|
def endElement(self, tag):
|
||||||
"""Handle the end of an element."""
|
"""Handle the end of an element."""
|
||||||
if tag == "author":
|
if tag == "author":
|
||||||
|
developer = self.text.strip()
|
||||||
if (self.title == 'author' and
|
if (self.title == 'author' and
|
||||||
self.text not in self.author_list):
|
developer not in self.author_list):
|
||||||
self.author_list.append(self.text.strip())
|
self.author_list.append(developer)
|
||||||
elif (self.title == 'contributor' and
|
elif (self.title == 'contributor' and
|
||||||
self.text not in self.contributor_list):
|
developer not in self.contributor_list):
|
||||||
self.contributor_list.append(self.text.strip())
|
self.contributor_list.append(developer)
|
||||||
|
|
||||||
def characters(self, chunk):
|
def characters(self, chunk):
|
||||||
"""Receive notification of character data."""
|
"""Receive notification of character data."""
|
||||||
|
Loading…
Reference in New Issue
Block a user