From fbfda39d26da6747edb3a4c6d593be7e6b2b0f1d Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 9 Dec 2012 23:28:58 +0100 Subject: Python/pep8: fix E711 in document module Change-Id: I76efd29101d191fae6560d177a79710329ac2596 --- wizards/com/sun/star/wizards/document/OfficeDocument.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wizards') diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py index 69391bbbcb4b..8abc1e1bfbf7 100644 --- a/wizards/com/sun/star/wizards/document/OfficeDocument.py +++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py @@ -64,7 +64,7 @@ class OfficeDocument(object): def dispose(self, xMSF, xComponent): try: - if xComponent != None: + if xComponent is not None: xFrame = xComponent.CurrentController.Frame if xComponent.isModified(): xComponent.setModified(False) @@ -228,7 +228,7 @@ class OfficeDocument(object): def close(self, xComponent): bState = False - if xComponent != None: + if xComponent is not None: try: xComponent.close(True) bState = True -- cgit