clean ups

This commit is contained in:
Andreas Preikschat 2011-01-09 18:07:17 +01:00
parent ce1241aa0f
commit 62794614f9
2 changed files with 3 additions and 3 deletions

View File

@ -269,7 +269,7 @@ class OpenLyrics(object):
song = Song()
if xml[:5] == u'<?xml':
xml = xml[38:]
# Remove chords
# Remove chords from xml.
xml = re.compile(u'<chord name=".*?"/>').sub(u'', xml)
song_xml = objectify.fromstring(xml)
properties = song_xml.properties