diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-09 23:36:34 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-09 23:36:34 +0100 |
commit | 50bdce1a194d8a9ba5c1e2bc4fb622023d3009a3 (patch) | |
tree | 946d4a0e80f6327d38688deb7bcec40b5f6a8a45 /wizards | |
parent | c9bce39210b51e537b7eacd05e6af796a510f52b (diff) |
Python/pep8: fix E711 in wizards/../web module
Change-Id: I1efbf6ed09cefb5d69ac615d77cfee7eff6383f2
Diffstat (limited to 'wizards')
5 files changed, 15 insertions, 15 deletions
diff --git a/wizards/com/sun/star/wizards/web/BackgroundsDialog.py b/wizards/com/sun/star/wizards/web/BackgroundsDialog.py index 9d100b0b7d4e..640daeec794f 100644 --- a/wizards/com/sun/star/wizards/web/BackgroundsDialog.py +++ b/wizards/com/sun/star/wizards/web/BackgroundsDialog.py @@ -56,7 +56,7 @@ class BackgroundsDialog(ImageListDialog): def other(self): filename = self.sd.callOpenDialog( False, self.settings.cp_DefaultSession.cp_InDirectory) - if filename != None and filename.length > 0 and filename[0] != None: + if filename is not None and filename.length > 0 and filename[0] is not None: self.settings.cp_DefaultSession.cp_InDirectory = \ FileAccess.getParentDir(filename[0]) i = add(filename[0]) @@ -107,7 +107,7 @@ class BackgroundsDialog(ImageListDialog): self.cut = cut_ def getImageUrls(self, listItem): - if listItem != None: + if listItem is not None: sRetUrls = range(1) sRetUrls[0] = listItem return sRetUrls diff --git a/wizards/com/sun/star/wizards/web/IconsDialog.py b/wizards/com/sun/star/wizards/web/IconsDialog.py index efac5858d216..ee83a772ee28 100644 --- a/wizards/com/sun/star/wizards/web/IconsDialog.py +++ b/wizards/com/sun/star/wizards/web/IconsDialog.py @@ -61,7 +61,7 @@ class IconsDialog(ImageListDialog): self.build() def getIconset(self): - if getSelected() == None: + if getSelected() is None: return None else: return self.set.getKey((getSelected()) / len(self.icons)) @@ -91,7 +91,7 @@ class IconsDialog(ImageListDialog): return sRetUrls def render(self, object): - if object == None: + if object is None: return "" i = (object).intValue() diff --git a/wizards/com/sun/star/wizards/web/WWD_Events.py b/wizards/com/sun/star/wizards/web/WWD_Events.py index 9b48cebc785f..427b4280244c 100644 --- a/wizards/com/sun/star/wizards/web/WWD_Events.py +++ b/wizards/com/sun/star/wizards/web/WWD_Events.py @@ -340,7 +340,7 @@ class WWD_Events(WWD_Startup): ''' def setBackground(self, background): - if background == None: + if background is None: background = "" WWD_Startup.settings.cp_DefaultSession.cp_Design.cp_BackgroundImage \ @@ -390,7 +390,7 @@ class WWD_Events(WWD_Startup): updates the ui.... ''' def setPublishUrl(self, publisher, url, number): - if url == None: + if url is None: return None p = getPublisher(publisher) @@ -465,7 +465,7 @@ class WWD_Events(WWD_Startup): def documentPreview(self): try: - if self.docPreview == None: + if self.docPreview is None: self.docPreview = TOCPreview( self.xMSF, settings, resources, stylePreview.tempDir, myFrame) @@ -653,7 +653,7 @@ class WWD_Events(WWD_Startup): # first I check if a session with the given name exists try: node = Configuration.getNode(name, conf) - if node != None: + if node is not None: if not AbstractErrorHandler.showMessage( self.xMSF, self.xUnoDialog.Peer, resources.resSessionExists.replace("${NAME}", name), @@ -755,7 +755,7 @@ class WWD_Events(WWD_Startup): ''' p = getPublisher(FTP_PUBLISHER) # if ftp is checked, and no proxies are set, and password is empty... - if p.cp_Publish and not proxies and p.password == None or \ + if p.cp_Publish and not proxies and p.password is None or \ p.password == "": if showFTPDialog(p): updatePublishUI(2) diff --git a/wizards/com/sun/star/wizards/web/WebWizardDialog.py b/wizards/com/sun/star/wizards/web/WebWizardDialog.py index 0fd86c4c8261..f6fbc39a396f 100644 --- a/wizards/com/sun/star/wizards/web/WebWizardDialog.py +++ b/wizards/com/sun/star/wizards/web/WebWizardDialog.py @@ -721,7 +721,7 @@ class WebWizardDialog(WizardDialog): def getImageUrls(self, listItem): oResIds = None - if listItem != None: + if listItem is not None: oResIds = listItem.getImageUrls() return oResIds diff --git a/wizards/com/sun/star/wizards/web/data/CGDocument.py b/wizards/com/sun/star/wizards/web/data/CGDocument.py index 6dd6aeae9b3e..a5a4e10e5b38 100644 --- a/wizards/com/sun/star/wizards/web/data/CGDocument.py +++ b/wizards/com/sun/star/wizards/web/data/CGDocument.py @@ -110,7 +110,7 @@ class CGDocument(ConfigGroup): #task.advance(True) #4 #now use the object to read some document properties. - if xProps != None: + if xProps is not None: title = xProps.Title description = xProps.Description author = xProps.Author @@ -138,7 +138,7 @@ class CGDocument(ConfigGroup): if self.cp_Author == "": cp_Author = self.author - if self.cp_Exporter == None or self.cp_Exporter == "": + if self.cp_Exporter is None or self.cp_Exporter == "": cp_Exporter = \ self.root.cp_Exporters.getKey(self.root.getExporters(CGDocument.appType)) @@ -197,13 +197,13 @@ class CGDocument(ConfigGroup): d.cp_DisplayFormatIcon ? getIcon(exp) : "", self.dirName, self.urlFilename])''' def updateDate(self): - if self.updateDate == None: + if self.updateDate is None: return "" return getSettings().formatter.formatCreated(self.updateDate) def createDate(self): - if self.createDate == None: + if self.createDate is None: return "" return getSettings().formatter.formatCreated(self.createDate) @@ -272,7 +272,7 @@ class CGDocument(ConfigGroup): ''' def getExporterIndex(self): - if self.cp_Exporter == None: + if self.cp_Exporter is None: return 0 exporter = getSettings().cp_Exporters.getElement(self.cp_Exporter) |