From 38391d749c5918ee5b66ff54555cfa51deb4ad64 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 7 Aug 2010 11:22:27 -0400 Subject: [PATCH] Use Playlist.__str__ code for __repr__ and __unicode__ too. --- hooke/playlist.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hooke/playlist.py b/hooke/playlist.py index 8444c9a..ab32bed 100644 --- a/hooke/playlist.py +++ b/hooke/playlist.py @@ -45,7 +45,13 @@ class NoteIndexList (list): self._index = 0 def __str__(self): - return '<%s %s>' % (self.__class__.__name__, self.name) + return str(self.__unicode__()) + + def __unicode__(self): + return u'<%s %s>' % (self.__class__.__name__, self.name) + + def __repr__(self): + return self.__str__() def _setup_item(self, item): """Perform any required initialization before returning an item. -- 2.26.2