diff options
author | Sean Finney <seanius@debian.org> | 2008-09-05 00:01:01 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-09-05 00:01:01 +0200 |
commit | 73307e04f3a0a67f27e38682830dd832a485792a (patch) | |
tree | 8b49d586d5c6338b77e69b04fc0ec80f3aea13ed | |
parent | 01d84d428719138a5fb8e3020de53c44080ba1bc (diff) | |
download | patch-tracker-73307e04f3a0a67f27e38682830dd832a485792a.tar.gz |
unicode fixes
-rwxr-xr-x | patchtracker/SourceArchive.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/patchtracker/SourceArchive.py b/patchtracker/SourceArchive.py index 4edb559..d8b3b2e 100755 --- a/patchtracker/SourceArchive.py +++ b/patchtracker/SourceArchive.py @@ -108,10 +108,11 @@ class SourcePackage: except UnicodeDecodeError: self.maintainers = [unicode(info['Maintainer'], 'latin-1')] if info.has_key('Uploaders'): - try: - self.maintainers.extend(unicode(info['Uploaders'].split(", "))) - except UnicodeDecodeError: - self.maintainers.extend(unicode(info['Uploaders'].split(", "), 'latin-1')) + for up in info['Uploaders'].split(", "): + try: + self.maintainers.append(unicode(up)) + except UnicodeDecodeError: + self.maintainers.append(unicode(up, 'latin-1')) self.idx = getidx(self) for f in info['Files']: |