From 678bb3e2beadaa9e904a52010ddafcc74b69807a Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sat, 13 Jul 2013 17:35:47 +0200 Subject: [PATCH] fixed DreamBeam importer --- openlp/plugins/songs/lib/dreambeamimport.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/openlp/plugins/songs/lib/dreambeamimport.py b/openlp/plugins/songs/lib/dreambeamimport.py index 72dbed2d4..5a5bde163 100644 --- a/openlp/plugins/songs/lib/dreambeamimport.py +++ b/openlp/plugins/songs/lib/dreambeamimport.py @@ -100,12 +100,11 @@ class DreamBeamImport(SongImport): log.exception(u'XML syntax error in file %s' % file) self.logError(file, SongStrings.XMLSyntaxError) continue - xml = unicode(etree.tostring(parsed_file)) + xml = etree.tostring(parsed_file).decode() song_xml = objectify.fromstring(xml) if song_xml.tag != u'DreamSong': - self.logError(file, unicode( - translate('SongsPlugin.DreamBeamImport', - ('Invalid DreamBeam song file. Missing DreamSong tag.')))) + self.logError(file, + translate('SongsPlugin.DreamBeamImport', 'Invalid DreamBeam song file. Missing DreamSong tag.')) continue if hasattr(song_xml, u'Version'): self.version = float(song_xml.Version.text)