Style, no "is" to compare strings.

This commit is contained in:
Mattias Põldaru 2011-12-17 23:17:53 +02:00
parent 86df7d9734
commit dca74bd144

View File

@ -77,7 +77,7 @@ class OpenLyricsImport(SongImport):
except OpenLyricsError as exception: except OpenLyricsError as exception:
log.exception(u'OpenLyricsException of type %s: %s in file %s' log.exception(u'OpenLyricsException of type %s: %s in file %s'
% (exception.type, exception.message, file_path)) % (exception.type, exception.message, file_path))
if exception.type is 'XML': if exception.type == 'XML':
self.logError(file_path, SongStrings.XMLSyntaxError) self.logError(file_path, SongStrings.XMLSyntaxError)
else: else:
self.logError(file_path, exception.message) self.logError(file_path, exception.message)