[Libreoffice-commits] .: filter/source

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


 filter/source/config/tools/merge/pyAltFCFGMerge |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit d83b27aed3097a8e25e8e56e2af796205f826270
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Dec 9 23:45:05 2012 +0100

    Python/pep8: fix E711 in filter/../pyAltFCFGMerge
    
    Change-Id: I0c6fab8829ad7cc434791a0ef1743eb1d50417d9

diff --git a/filter/source/config/tools/merge/pyAltFCFGMerge b/filter/source/config/tools/merge/pyAltFCFGMerge
index b05e37d..e09178d 100755
--- a/filter/source/config/tools/merge/pyAltFCFGMerge
+++ b/filter/source/config/tools/merge/pyAltFCFGMerge
@@ -247,8 +247,8 @@ def readprops(buff):
 
             i += 1
 
-        # no dlimiter was found, name is entire line, there is no value
-        if name == None:
+        # no delimiter was found, name is entire line, there is no value
+        if name is None:
             name = unescapestr(line.lstrip())
 
         # skip delimiter
@@ -340,12 +340,12 @@ class ConfigHelper:
         # Do it only, if a valid file name was given.
         # But in case this file name is wrong, throw an exception.
         # So the outside code can react!
-        if sPropFile != None and len(sPropFile) > 0:
+        if sPropFile is not None and len(sPropFile) > 0:
             self.props = Properties()
             self.props.read(sPropFile)
 
         count = 0
-        if lCommandLineArgs != None:
+        if lCommandLineArgs is not None:
             count = len(lCommandLineArgs)
         self.m_bEmpty = (count < 1)
 


More information about the Libreoffice-commits mailing list