~tomasgroth/openlp/importer-fixes

« back to all changes in this revision

Viewing changes to openlp/plugins/songs/lib/importers/sundayplus.py

  • Committer: Tomas Groth
  • Date: 2016-01-09 09:09:29 UTC
  • Revision ID: tomasgroth@yahoo.dk-20160109090929-4ko947nux0j9shx2
pep8 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import os
24
24
import re
 
25
import logging
 
26
 
25
27
 
26
28
from openlp.plugins.songs.lib import VerseType, retrieve_windows_encoding
27
29
from openlp.plugins.songs.lib import strip_rtf
86
88
        :param cell: ?
87
89
        :return:
88
90
        """
89
 
        if cell == False and (len(data) == 0 or data[0:1] != b'[' or data.strip()[-1:] != b']'):
90
 
            log.log_error('File is malformed')
 
91
        if not cell and (len(data) == 0 or data[0:1] != b'[' or data.strip()[-1:] != b']'):
 
92
            self.log_error('File is malformed')
91
93
            return False
92
94
        i = 1
93
95
        verse_type = VerseType.tags[VerseType.Verse]