summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-08 21:18:15 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-08 21:18:15 +0000
commite7fb86bb57367571be419110ae263e4fb19cc2d7 (patch)
treeb9d99aa5d60085cacf90bda1a373d5160f59a5a8
parent9aca761850fa82997dbcd04cb06a203b7b326ea3 (diff)
downloadportage-e7fb86bb57367571be419110ae263e4fb19cc2d7.tar.gz
portage-e7fb86bb57367571be419110ae263e4fb19cc2d7.tar.bz2
portage-e7fb86bb57367571be419110ae263e4fb19cc2d7.zip
In Task.__str__(), emulate tuple.__str__, but don't show 'foo' as u'foo' for
unicode strings. svn path=/main/trunk/; revision=13950
-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()))