[Blends-commit] [SCM] website branch, master, updated. b9566af496323ceadabb21da1592ea9c86b031cf

Ole Streicher olebole at debian.org
Sat Mar 5 19:33:06 UTC 2016


The following commit has been merged in the master branch:
commit b9566af496323ceadabb21da1592ea9c86b031cf
Author: Ole Streicher <olebole at debian.org>
Date:   Sat Mar 5 20:31:19 2016 +0100

    Remove explicite utf8 encoding for dep.responsible

diff --git a/webtools/blendstasktools.py b/webtools/blendstasktools.py
index 88319da..684eea8 100644
--- a/webtools/blendstasktools.py
+++ b/webtools/blendstasktools.py
@@ -1267,7 +1267,7 @@ class TaskDependencies:
                     why = stanza['why']
                     continue
                 if key == 'Responsible':
-                    responsible = (stanza['responsible'].strip()).encode('utf-8')
+                    responsible = stanza['responsible'].strip()
             	    if not dep:
             		# Make sure there is really enough information to deal with provided by the package
             		logger.error("Missing package information for field %s = %s in task file %s" % (key, responsible, self.task))
@@ -1281,11 +1281,7 @@ class TaskDependencies:
                         continue
                     if responsible != '':
                         (_name, _url) = email.Utils.parseaddr(responsible)
-                        try:
-                            dep.responsible = '<a href="mailto:%s">%s</a>' % (_url, _name)
-			    dep.responsible = dep.responsible.encode('utf-8')
-                        except UnicodeDecodeError, err:
-                            logger.error("Unicode problem when decoding name of maintainer with mail address <%s> in task %s (%s)" % (_url, self.task, err))
+                        dep.responsible = '<a href="mailto:%s">%s</a>' % (_url, _name)
                     continue
 
                 if key in dep_strength_keys:

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list