From: Zac Medico Date: Sat, 8 Aug 2009 21:18:15 +0000 (-0000) Subject: In Task.__str__(), emulate tuple.__str__, but don't show 'foo' as u'foo' for X-Git-Tag: v2.2_rc37~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e7fb86bb57367571be419110ae263e4fb19cc2d7;p=portage.git In Task.__str__(), emulate tuple.__str__, but don't show 'foo' as u'foo' for unicode strings. svn path=/main/trunk/; revision=13950 --- 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()))