summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/RepoDisplay.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/RepoDisplay.py')
-rw-r--r--pym/_emerge/RepoDisplay.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pym/_emerge/RepoDisplay.py b/pym/_emerge/RepoDisplay.py
index f5efd65c8..5a66b5b9c 100644
--- a/pym/_emerge/RepoDisplay.py
+++ b/pym/_emerge/RepoDisplay.py
@@ -1,8 +1,11 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+import sys
+
from portage.output import teal
from portage import os
+from portage import _encodings, _unicode_encode
class RepoDisplay(object):
def __init__(self, roots):
@@ -67,3 +70,10 @@ class RepoDisplay(object):
" indicates that the source repository could not be determined\n")
return "".join(output)
+ if sys.hexversion < 0x3000000:
+
+ __unicode__ = __str__
+
+ def __str__(self):
+ return _unicode_encode(self.__unicode__(),
+ encoding=_encodings['content'])