summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/Task.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/_emerge/Task.py b/pym/_emerge/Task.py
index dbbdcd24f..d218ba360 100644
--- a/pym/_emerge/Task.py
+++ b/pym/_emerge/Task.py
@@ -37,5 +37,8 @@ class Task(SlotObject):
return key in self._get_hash_key()
def __str__(self):
- return str(self._get_hash_key())
-
+ """
+ Emulate tuple.__repr__, but don't show 'foo' as u'foo' for unicode
+ strings.
+ """
+ return "(%s)" % ", ".join(("'%s'" % x for x in self._get_hash_key()))