forked from openlp/openlp
Changed [:] notation to .startswith().
This commit is contained in:
parent
7f1db15ab1
commit
19d085bb3c
@ -146,7 +146,7 @@ class SongXML(object):
|
|||||||
unicode(verse)])
|
unicode(verse)])
|
||||||
self.add_verse_to_lyrics(u'v', unicode(count), verse)
|
self.add_verse_to_lyrics(u'v', unicode(count), verse)
|
||||||
return verse_list
|
return verse_list
|
||||||
elif xml[:5] == u'<?xml':
|
elif xml.startswith(u'<?xml'):
|
||||||
xml = xml[38:]
|
xml = xml[38:]
|
||||||
try:
|
try:
|
||||||
self.song_xml = objectify.fromstring(xml)
|
self.song_xml = objectify.fromstring(xml)
|
||||||
|
Loading…
Reference in New Issue
Block a user