None tests redux

This commit is contained in:
Jon Tibble 2010-03-04 18:43:53 +00:00
parent 0baa0e6884
commit 132022205e

View File

@ -165,7 +165,7 @@ class PowerpointDocument(PresentationDocument):
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()
@ -181,9 +181,9 @@ class PowerpointDocument(PresentationDocument):
if not self.controller.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