From 27f0459072ce2077d73bc95e95b4dc52af86147c Mon Sep 17 00:00:00 2001 From: pin Date: Tue, 9 Feb 2010 12:51:52 +0000 Subject: [PATCH] =?utf8?q?=5F=5Frepr=5F=5F=20dissoci=C3=A9=20de=20=5F=5Fst?= =?utf8?q?r=5F=5F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@18 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/songs/musicxmltosong.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/songs/musicxmltosong.py b/src/songs/musicxmltosong.py index 068017f..91feeae 100755 --- a/src/songs/musicxmltosong.py +++ b/src/songs/musicxmltosong.py @@ -173,7 +173,8 @@ class Note(object) : def __str__(self) : return (u'%5s %2s %2d %4s' % (self.nom, self.name, self.midi, round(self.duration, 2))).encode('utf-8') - __repr__ = __str__ + def __repr__(self) : + return self.name.encode('utf-8') def addDuration(self, note) : self._duration = self.duration + note.duration -- 2.20.1