From 3ae6295e216f04d3ffd893f41f07578a716e4279 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Fri, 15 Oct 2010 10:35:00 +0200 Subject: [PATCH] clean ups --- openlp/core/lib/serviceitem.py | 2 +- openlp/core/ui/slidecontroller.py | 1 - openlp/plugins/songs/lib/songbeamerimport.py | 10 ++++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index 7d63115bf..a5417916e 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -399,6 +399,6 @@ class ServiceItem(object): def get_frame_path(self, row=0): """ - Returns the title of the raw frame + Returns the path of the raw frame """ return self._raw_frames[row][u'path'] diff --git a/openlp/core/ui/slidecontroller.py b/openlp/core/ui/slidecontroller.py index b7be980cc..acc170ea9 100644 --- a/openlp/core/ui/slidecontroller.py +++ b/openlp/core/ui/slidecontroller.py @@ -999,4 +999,3 @@ class SlideController(QtGui.QWidget): self.video.hide() self.SlidePreview.clear() self.SlidePreview.show() - diff --git a/openlp/plugins/songs/lib/songbeamerimport.py b/openlp/plugins/songs/lib/songbeamerimport.py index a839e2418..505e99a46 100644 --- a/openlp/plugins/songs/lib/songbeamerimport.py +++ b/openlp/plugins/songs/lib/songbeamerimport.py @@ -127,11 +127,10 @@ class SongBeamerImport(SongImport): self.import_wizard.incrementProgressBar( "Importing %s" % (self.file_name)) return True - + def parse_tags(self, line): tag_val = line.split('=') - if len(tag_val[0]) == 0 or \ - len(tag_val[1]) == 0: + if len(tag_val[0]) == 0 or len(tag_val[1]) == 0: return True if tag_val[0] == '#(c)': self.add_copyright(tag_val[1]) @@ -225,11 +224,10 @@ class SongBeamerImport(SongImport): else: pass return True - + def check_verse_marks(self, line): marks = line.split(' ') - if len(marks) <= 2 and \ - marks[0] in SongBeamerTypes.MarkTypes: + if len(marks) <= 2 and marks[0] in SongBeamerTypes.MarkTypes: self.current_verse_type = SongBeamerTypes.MarkTypes[marks[0]] if len(marks) == 2: #TODO: may check, because of only digits are allowed