pep8 fixes

This commit is contained in:
Tomas Groth 2015-04-30 14:48:45 +02:00
parent 1333c2ff43
commit d044821483
2 changed files with 2 additions and 2 deletions

View File

@ -827,7 +827,7 @@ class SlideController(DisplayController, RegistryProperties):
# take a copy not a link to the servicemanager copy.
self.service_item = copy.copy(service_item)
# Reset blanking if needed
if old_item and self.is_live and (old_item.is_capable(ItemCapabilities.ProvidesOwnDisplay) or \
if old_item and self.is_live and (old_item.is_capable(ItemCapabilities.ProvidesOwnDisplay) or
self.service_item.is_capable(ItemCapabilities.ProvidesOwnDisplay)):
self._reset_blank(self.service_item.is_capable(ItemCapabilities.ProvidesOwnDisplay))
if service_item.is_command():

View File

@ -227,7 +227,7 @@ class PowerpointDocument(PresentationDocument):
"""
log.debug('unblank_screen')
try:
# Powerpoint 2010 (14.0) has a bug that prevents unblanking from working,
# Powerpoint 2010 (14.0) has a bug that prevents unblanking from working,
# so we have to works around it by sending a keystroke to Powerpoint.
# The keystroke 'U' should not have any bindings in Powerpoint so we use that
if float(self.presentation.Application.Version) == 14.0: