From b72155941974981903dd11681b0adb5ad4b918d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20P=C3=B5ldaru?= Date: Wed, 21 Dec 2011 00:09:52 +0200 Subject: [PATCH] This line created a warning since codecs returns unicode strings. --- openlp/plugins/songs/lib/cclifileimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/cclifileimport.py b/openlp/plugins/songs/lib/cclifileimport.py index e9b1aa925..1e750ddbe 100644 --- a/openlp/plugins/songs/lib/cclifileimport.py +++ b/openlp/plugins/songs/lib/cclifileimport.py @@ -75,7 +75,7 @@ class CCLIFileImport(SongImport): details = chardet.detect(detect_content) detect_file.close() infile = codecs.open(filename, u'r', details['encoding']) - if not infile.read(3) == '\xEF\xBB\xBF': + if not infile.read(1) == u'\ufeff': # not UTF or no BOM was found infile.seek(0) lines = infile.readlines()