Fix vardbapi._aux_get() to always return unicode.
authorZac Medico <zmedico@gentoo.org>
Tue, 4 Aug 2009 21:40:32 +0000 (21:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 4 Aug 2009 21:40:32 +0000 (21:40 -0000)
svn path=/main/trunk/; revision=13909

pym/portage/dbapi/vartree.py

index f99fb69da1fdd813c17ffff16b14e8c51d88e953..075f38b2bd23f584e5a865b3617df1910dbc4c8c 100644 (file)
@@ -1233,9 +1233,9 @@ class vardbapi(dbapi):
                                if self._aux_multi_line_re.match(x) is None:
                                        myd = " ".join(myd.split())
                        except IOError:
-                               myd = ""
+                               myd = u''
                        if x == "EAPI" and not myd:
-                               results.append("0")
+                               results.append(u'0')
                        else:
                                results.append(myd)
                return results