projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
__repr__ dissocié de __str__
[minwii.git]
/
src
/
songs
/
musicxmltosong.py
diff --git
a/src/songs/musicxmltosong.py
b/src/songs/musicxmltosong.py
index
068017f
..
91feeae
100755
(executable)
--- 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')
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
def addDuration(self, note) :
self._duration = self.duration + note.duration