From: Han-Wen Nienhuys Date: Mon, 20 Aug 2007 03:43:28 +0000 (-0300) Subject: Fix style nits. X-Git-Tag: release/2.11.30-1~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f638eedbcd486c54c4b3ab36321b5a81cf241414;p=lilypond.git Fix style nits. --- diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 9a09fa2dc5..373dd5d1f1 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -495,9 +495,9 @@ def musicxml_voice_to_lily_voice (voice): # The element can have the following children (+ means implemented, ~ partially, - not): # +tied | +slur | +tuplet | glissando | slide | - # ornaments | technical | articulations | dynamics | - # +fermata | arpeggiate | non-arpeggiate | - # accidental-mark | other-notation + # ornaments | technical | articulations | dynamics | + # +fermata | arpeggiate | non-arpeggiate | + # accidental-mark | other-notation if notations: if notations.get_tuplet(): tuplet_event = notations.get_tuplet() @@ -611,12 +611,12 @@ def musicxml_voice_to_lily_voice (voice): def musicxml_id_to_lily (id): - digits = ['Zero', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', - 'Nine', 'Ten'] + digits = ['Zero', 'One', 'Two', 'Three', 'Four', 'Five', + 'Six', 'Seven', 'Eight', 'Nine', 'Ten'] - for dig in digits: - d = digits.index (dig) - id = re.sub ('%d' % d, dig, id) + for digit in digits: + d = digits.index (digit) + id = re.sub ('%d' % d, digit, id) id = re.sub ('[^a-zA-Z]', 'X', id) return id