Changed [:] notation to .startswith().

This commit is contained in:
Raoul Snyman 2011-04-29 08:28:09 +02:00
parent 7f1db15ab1
commit 19d085bb3c

View File

@ -146,7 +146,7 @@ class SongXML(object):
unicode(verse)])
self.add_verse_to_lyrics(u'v', unicode(count), verse)
return verse_list
elif xml[:5] == u'<?xml':
elif xml.startswith(u'<?xml'):
xml = xml[38:]
try:
self.song_xml = objectify.fromstring(xml)