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=92abff2e383fd93c04c9dd0061ad46a1713d78bf;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.