From e4f4626f046b2f5e8a7f88a83aba0ee174256d56 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Fri, 27 Aug 2010 21:14:23 +0100 Subject: [PATCH] shortened some long lines. --- openlp/plugins/songs/lib/wowimport.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/openlp/plugins/songs/lib/wowimport.py b/openlp/plugins/songs/lib/wowimport.py index 78a9aed5a..cb4ebf9ae 100644 --- a/openlp/plugins/songs/lib/wowimport.py +++ b/openlp/plugins/songs/lib/wowimport.py @@ -116,13 +116,14 @@ class WowImport(SongImport): self.import_wizard.importProgressBar.setMaximum( len(self.import_source)) for file in self.import_source: - # TODO: check that it is a valid words of worship file (could check - # header for WoW File Song Word) + # TODO: check that it is a valid words of worship file (could + # check header for WoW File Song Word) self.author = u'' self.copyright= u'' # Get the song title self.file_name = os.path.split(file)[1] - self.import_wizard.incrementProgressBar("Importing %s" % (self.file_name), 0) + self.import_wizard.incrementProgressBar( + "Importing %s" % (self.file_name), 0) self.title = self.file_name.rpartition(u'.')[0] self.songData = open(file, 'rb') # Seek to byte which stores number of blocks in the song @@ -155,16 +156,17 @@ class WowImport(SongImport): # Now to extact the author self.author_length = ord(self.songData.read(1)) if self.author_length != 0: - self.author = unicode(self.songData.read(self.author_length), - u'cp1252') + self.author = unicode( + self.songData.read(self.author_length), u'cp1252') # Finally the copyright self.copyright_length = ord(self.songData.read(1)) if self.copyright_length != 0: - self.copyright = unicode(self.songData.read(self.copyright_length), - u'cp1252') + self.copyright = unicode( + self.songData.read(self.copyright_length), u'cp1252') self.parse_author(self.author) self.add_copyright(self.copyright) self.songData.close() self.finish() - self.import_wizard.incrementProgressBar("Importing %s" % (self.file_name)) + self.import_wizard.incrementProgressBar( + "Importing %s" % (self.file_name)) return True