From: W. Trevor King Date: Sat, 7 Aug 2010 15:22:27 +0000 (-0400) Subject: Use Playlist.__str__ code for __repr__ and __unicode__ too. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38391d749c5918ee5b66ff54555cfa51deb4ad64;p=hooke.git Use Playlist.__str__ code for __repr__ and __unicode__ too. --- 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.