From 419b6764c36de9a349e171426ca2b201e5ffaaae Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Fri, 12 Jul 2013 21:13:18 +0200 Subject: [PATCH] fixed OpenLyrics importer --- openlp/plugins/songs/lib/openlyricsimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/openlyricsimport.py b/openlp/plugins/songs/lib/openlyricsimport.py index d855f521e..e33718853 100644 --- a/openlp/plugins/songs/lib/openlyricsimport.py +++ b/openlp/plugins/songs/lib/openlyricsimport.py @@ -70,7 +70,7 @@ class OpenLyricsImport(SongImport): # Pass a file object, because lxml does not cope with some # special characters in the path (see lp:757673 and lp:744337). parsed_file = etree.parse(open(file_path, u'r'), parser) - xml = unicode(etree.tostring(parsed_file)) + xml = etree.tostring(parsed_file).decode() self.openLyrics.xml_to_song(xml) except etree.XMLSyntaxError: log.exception(u'XML syntax error in file %s' % file_path)