From 80d54dc1be05a2582095203ad2827a254b22041e Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Sat, 27 Feb 2010 00:11:26 +0000 Subject: [PATCH] None tests --- openlp/core/ui/servicemanager.py | 2 +- openlp/plugins/presentations/lib/powerpointcontroller.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index 22fbb7ecc..ab36660b4 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -694,7 +694,7 @@ class ServiceManager(QtGui.QWidget): if plugin == u'ServiceManager': startpos, startCount = self.findServiceItem() item = self.ServiceManagerList.itemAt(event.pos()) - if item == None: + if item is None: endpos = len(self.serviceItems) else: parentitem = item.parent() diff --git a/openlp/plugins/presentations/lib/powerpointcontroller.py b/openlp/plugins/presentations/lib/powerpointcontroller.py index a9775e086..4ac7ada66 100644 --- a/openlp/plugins/presentations/lib/powerpointcontroller.py +++ b/openlp/plugins/presentations/lib/powerpointcontroller.py @@ -150,7 +150,7 @@ class PowerpointController(PresentationController): Triggerent by new object being added to SlideController orOpenLP being shut down """ - if self.presentation == None: + if self.presentation is None: return try: self.presentation.Close() @@ -165,9 +165,9 @@ class PowerpointController(PresentationController): if not self.is_loaded(): return False try: - if self.presentation.SlideShowWindow == None: + if self.presentation.SlideShowWindow is None: return False - if self.presentation.SlideShowWindow.View == None: + if self.presentation.SlideShowWindow.View is None: return False except: return False