forked from openlp/openlp
Fixed bug #794971: Typecast the buffer object to a unicode object.
This commit is contained in:
parent
d02ee451f2
commit
897f7a7dbb
@ -267,6 +267,10 @@ def clean_song(manager, song):
|
|||||||
``song``
|
``song``
|
||||||
The song object.
|
The song object.
|
||||||
"""
|
"""
|
||||||
|
if not isinstance(song.title, basestring):
|
||||||
|
song.title = unicode(song.title)
|
||||||
|
if not isinstance(song.lyrics, basestring):
|
||||||
|
song.lyrics = unicode(song.lyrics)
|
||||||
song.title = song.title.rstrip() if song.title else u''
|
song.title = song.title.rstrip() if song.title else u''
|
||||||
if song.alternate_title is None:
|
if song.alternate_title is None:
|
||||||
song.alternate_title = u''
|
song.alternate_title = u''
|
||||||
|
Loading…
Reference in New Issue
Block a user