From dca74bd1448cdc5676dd4e72307c317cd6eb7ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20P=C3=B5ldaru?= Date: Sat, 17 Dec 2011 23:17:53 +0200 Subject: [PATCH] Style, no "is" to compare strings. --- 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 c13b89de8..cc4759d50 100644 --- a/openlp/plugins/songs/lib/openlyricsimport.py +++ b/openlp/plugins/songs/lib/openlyricsimport.py @@ -77,7 +77,7 @@ class OpenLyricsImport(SongImport): except OpenLyricsError as exception: log.exception(u'OpenLyricsException of type %s: %s in file %s' % (exception.type, exception.message, file_path)) - if exception.type is 'XML': + if exception.type == 'XML': self.logError(file_path, SongStrings.XMLSyntaxError) else: self.logError(file_path, exception.message)