[Libreoffice-commits] .: wizards/com

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Dec 9 14:30:30 PST 2012


 wizards/com/sun/star/wizards/document/OfficeDocument.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fbfda39d26da6747edb3a4c6d593be7e6b2b0f1d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Dec 9 23:28:58 2012 +0100

    Python/pep8: fix E711 in document module
    
    Change-Id: I76efd29101d191fae6560d177a79710329ac2596

diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py
index 69391bb..8abc1e1 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


More information about the Libreoffice-commits mailing list