diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-08-08 21:18:15 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-08-08 21:18:15 +0000 |
commit | e7fb86bb57367571be419110ae263e4fb19cc2d7 (patch) | |
tree | b9d99aa5d60085cacf90bda1a373d5160f59a5a8 | |
parent | 9aca761850fa82997dbcd04cb06a203b7b326ea3 (diff) | |
download | portage-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.py | 7 |
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())) |