Bug #339231 - Return unicode from glsa.getText().
authorZac Medico <zmedico@gentoo.org>
Fri, 1 Oct 2010 02:03:12 +0000 (19:03 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 5 Oct 2010 15:59:02 +0000 (08:59 -0700)
pym/portage/glsa.py

index 116003a5de99fd45c81dbcc31a03bd8a7e59ab9c..82245f8f0d1592a4cc6f6a1aa8dedac93956661e 100644 (file)
@@ -199,7 +199,7 @@ def getText(node, format):
        if format == "strip":
                rValue = rValue.strip(" \n\t")
                rValue = re.sub("[\s]{2,}", " ", rValue)
-       return rValue.encode("utf_8")
+       return rValue
 
 def getMultiTagsText(rootnode, tagname, format):
        """